balance endpoint
This commit is contained in:
@@ -350,6 +350,29 @@ paths:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/TransactionResponse"
|
||||
/ledgers/{ledgerId}/balance:
|
||||
get:
|
||||
tags:
|
||||
- ledger
|
||||
operationId: findBalanceByLedgerId
|
||||
parameters:
|
||||
- name: ledgerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
"400":
|
||||
description: Bad Request
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/BalanceResponse"
|
||||
/characters:
|
||||
get:
|
||||
tags:
|
||||
@@ -660,6 +683,30 @@ components:
|
||||
enum:
|
||||
- ISK
|
||||
- ITEM
|
||||
BalanceResponse:
|
||||
type: object
|
||||
properties:
|
||||
iskBalance:
|
||||
type: number
|
||||
itemBalances:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/ItemBalanceResponse"
|
||||
required:
|
||||
- iskBalance
|
||||
- itemBalances
|
||||
ItemBalanceResponse:
|
||||
type: object
|
||||
properties:
|
||||
typeId:
|
||||
type: integer
|
||||
format: int64
|
||||
quantity:
|
||||
type: integer
|
||||
format: int64
|
||||
required:
|
||||
- quantity
|
||||
- typeId
|
||||
CharacterResponse:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user