Skip to content

Commit

Permalink
chore: Update OpenAPI config
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Nov 8, 2023
1 parent 08fb513 commit 010ab3b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkg/api/controllers/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ paths:
/_info:
get:
tags:
- Ledger
- Server
summary: Show server information
operationId: getInfo
Expand Down Expand Up @@ -58,6 +59,7 @@ paths:
summary: Count the accounts from a ledger
operationId: countAccounts
tags:
- Ledger
- Accounts
parameters:
- name: ledger
Expand Down Expand Up @@ -103,6 +105,7 @@ paths:
description: List accounts from a ledger, sorted by address in descending order.
operationId: listAccounts
tags:
- Ledger
- Accounts
parameters:
- name: ledger
Expand Down Expand Up @@ -226,6 +229,7 @@ paths:
summary: Get account by its address
operationId: getAccount
tags:
- Ledger
- Accounts
parameters:
- name: ledger
Expand Down Expand Up @@ -265,6 +269,7 @@ paths:
summary: Add metadata to an account
operationId: addMetadataToAccount
tags:
- Ledger
- Accounts
parameters:
- name: ledger
Expand Down Expand Up @@ -306,6 +311,7 @@ paths:
/{ledger}/mapping:
get:
tags:
- Ledger
- Mapping
operationId: getMapping
summary: Get the mapping of a ledger
Expand Down Expand Up @@ -333,6 +339,7 @@ paths:

put:
tags:
- Ledger
- Mapping
operationId: updateMapping
summary: Update the mapping of a ledger
Expand Down Expand Up @@ -368,6 +375,7 @@ paths:
post:
deprecated: true
tags:
- Ledger
- Script
operationId: runScript
summary: Execute a Numscript
Expand Down Expand Up @@ -411,6 +419,7 @@ paths:
/{ledger}/stats:
get:
tags:
- Ledger
- Stats
operationId: readStats
summary: Get statistics from a ledger
Expand Down Expand Up @@ -441,6 +450,7 @@ paths:
/{ledger}/transactions:
head:
tags:
- Ledger
- Transactions
summary: Count the transactions from a ledger
operationId: countTransactions
Expand Down Expand Up @@ -542,6 +552,7 @@ paths:

get:
tags:
- Ledger
- Transactions
summary: List transactions from a ledger
description: List transactions from a ledger, sorted by txid in descending order.
Expand Down Expand Up @@ -696,6 +707,7 @@ paths:

post:
tags:
- Ledger
- Transactions
summary: Create a new transaction to a ledger
operationId: createTransaction
Expand Down Expand Up @@ -740,6 +752,7 @@ paths:
/{ledger}/transactions/{txid}:
get:
tags:
- Ledger
- Transactions
summary: Get transaction from a ledger by its ID
operationId: getTransaction
Expand Down Expand Up @@ -777,6 +790,7 @@ paths:
/{ledger}/transactions/{txid}/metadata:
post:
tags:
- Ledger
- Transactions
summary: Set the metadata of a transaction by its ID
operationId: addMetadataOnTransaction
Expand Down Expand Up @@ -817,6 +831,7 @@ paths:
/{ledger}/transactions/{txid}/revert:
post:
tags:
- Ledger
- Transactions
operationId: revertTransaction
summary: Revert a ledger transaction by its ID
Expand Down Expand Up @@ -860,6 +875,7 @@ paths:
/{ledger}/transactions/batch:
post:
tags:
- Ledger
- Transactions
summary: Create a new batch of transactions to a ledger
operationId: CreateTransactions
Expand Down Expand Up @@ -894,6 +910,7 @@ paths:
/{ledger}/balances:
get:
tags:
- Ledger
- Balances
summary: Get the balances from a ledger's account
operationId: getBalances
Expand Down Expand Up @@ -956,6 +973,7 @@ paths:
/{ledger}/aggregate/balances:
get:
tags:
- Ledger
- Balances
summary: Get the aggregated balances from selected accounts
operationId: getBalancesAggregated
Expand Down Expand Up @@ -991,6 +1009,7 @@ paths:
/{ledger}/logs:
get:
tags:
- Ledger
- Logs
summary: List the logs from a ledger
description: List the logs from a ledger, sorted by ID in descending order.
Expand Down

0 comments on commit 010ab3b

Please sign in to comment.