transaction list api

This commit is contained in:
Sirttas
2026-05-31 21:54:56 +02:00
parent 457d2a5161
commit 47ee14319d
6 changed files with 266 additions and 9 deletions
+104
View File
@@ -325,6 +325,31 @@ paths:
oneOf:
- $ref: "#/components/schemas/CombinedLedgerResponse"
- $ref: "#/components/schemas/MainLedgerResponse"
/ledgers/{ledgerId}/transactions:
get:
tags:
- transaction
operationId: finAllTransactionsInLedger
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:
type: array
items:
$ref: "#/components/schemas/TransactionResponse"
/characters:
get:
tags:
@@ -556,6 +581,85 @@ components:
enum:
- MAIN
- COMBINED
IskTransferResponse:
allOf:
- $ref: "#/components/schemas/TransferResponse"
- type: object
properties:
fromLedgerId:
type: string
format: uuid
toLedgerId:
type: string
format: uuid
amount:
type: number
type:
type: string
enum:
- ISK
required:
- amount
- fromLedgerId
- toLedgerId
ItemTransferResponse:
allOf:
- $ref: "#/components/schemas/TransferResponse"
- type: object
properties:
fromLedgerId:
type: string
format: uuid
toLedgerId:
type: string
format: uuid
marketTypeId:
type: integer
format: int64
quantity:
type: integer
format: int64
type:
type: string
enum:
- ITEM
required:
- fromLedgerId
- marketTypeId
- quantity
- toLedgerId
TransactionResponse:
type: object
properties:
transactionId:
type: string
format: uuid
datetime:
type: string
format: date-time
description:
type: string
transfers:
type: array
items:
oneOf:
- $ref: "#/components/schemas/IskTransferResponse"
- $ref: "#/components/schemas/ItemTransferResponse"
required:
- datetime
- description
- transactionId
- transfers
TransferResponse:
type: object
discriminator:
propertyName: type
properties:
type:
type: string
enum:
- ISK
- ITEM
CharacterResponse:
type: object
properties: