balance endpoint

This commit is contained in:
Sirttas
2026-06-01 17:39:14 +02:00
parent 192cf7d9cb
commit 42c7e59d63
3 changed files with 122 additions and 3 deletions
+47
View File
@@ -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: