Skip to content

Commit

Permalink
Update vocdoni-api docs by commit 8ce1665
Browse files Browse the repository at this point in the history
  • Loading branch information
p4u authored and arabot-1 committed Sep 8, 2023
1 parent 32d96e0 commit f5674e4
Showing 1 changed file with 141 additions and 0 deletions.
141 changes: 141 additions & 0 deletions swaggers/vocdoni-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,38 @@ paths:
description: >-
Get treasurer address. The treasurer is a new authority entity identified by its Ethereum address and is the only one that can Mint new tokens.
summary: Get treasurer address
'/accounts/{accountID}/fees/page/{page}':
get:
parameters:
- description: Specific accountID
in: path
name: accountID
required: true
schema:
type: string
- description: Paginator page
in: path
name: page
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
fees:
items:
$ref: '#/components/schemas/indexertypes.TokenFeeMeta'
type: array
type: object
description: OK
tags:
- Accounts
description: >-
Returns the token fees for an account. A spending is an amount of tokens burnt from one account for executing transactions.
summary: List account token fees
'/accounts/{accountID}/transfers/page/{page}':
get:
parameters:
Expand Down Expand Up @@ -652,6 +684,96 @@ paths:
- Chain
description: Returns the estimated block height for the timestamp provided
summary: Estimate date to block
'/chain/fees/page/{page}':
get:
parameters:
- description: Paginator page
in: path
name: page
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
fees:
items:
$ref: '#/components/schemas/indexertypes.TokenFeeMeta'
type: array
type: object
description: OK
tags:
- Accounts
description: >-
Returns the token fees list ordered by date. A spending is an amount of tokens burnt from one account for executing transactions.
summary: List all token fees
'/chain/fees/reference/{reference}/page/{page}':
get:
parameters:
- description: Reference filter
in: path
name: reference
required: true
schema:
type: string
- description: Paginator page
in: path
name: page
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
fees:
items:
$ref: '#/components/schemas/indexertypes.TokenFeeMeta'
type: array
type: object
description: OK
tags:
- Accounts
description: >-
Returns the token fees list filtered by reference and ordered by date. A spending is an amount of tokens burnt from one account for executing transactions.
summary: List all token fees by reference
'/chain/fees/type/{type}/page/{page}':
get:
parameters:
- description: Type filter
in: path
name: type
required: true
schema:
type: string
- description: Paginator page
in: path
name: page
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
fees:
items:
$ref: '#/components/schemas/indexertypes.TokenFeeMeta'
type: array
type: object
description: OK
tags:
- Accounts
description: >-
Returns the token fees list filtered by type and ordered by date. A spending is an amount of tokens burnt from one account for executing transactions.
summary: List all token fees by type
/chain/info:
get:
responses:
Expand Down Expand Up @@ -1722,6 +1844,8 @@ components:
type: string
streamUri:
type: string
tempSIKs:
type: boolean
title:
$ref: '#/components/schemas/api.LanguageString'
voteType:
Expand Down Expand Up @@ -2344,6 +2468,23 @@ components:
total:
type: integer
type: object
indexertypes.TokenFeeMeta:
properties:
cost:
type: integer
from:
items:
type: integer
type: array
height:
type: integer
reference:
type: string
timestamp:
type: string
txType:
type: string
type: object
indexertypes.TokenTransferMeta:
properties:
amount:
Expand Down

0 comments on commit f5674e4

Please sign in to comment.