Skip to content

Commit

Permalink
Update vocdoni-api docs by commit 34e4b58
Browse files Browse the repository at this point in the history
  • Loading branch information
p4u authored and arabot-1 committed Oct 19, 2023
1 parent 32d96e0 commit 67072fa
Showing 1 changed file with 163 additions and 2 deletions.
165 changes: 163 additions & 2 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 @@ -460,7 +492,7 @@ paths:
description: 'Census type "weighted", "zkweighted", "csp'
tags:
- Censuses
description: Get the type of a census
description: Get the census type
summary: Get type of census
'/censuses/{censusID}/verify':
post:
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 @@ -1409,7 +1531,7 @@ paths:
tags:
- Wallet
description: >-
Add a new account to the local store. It return a token used to manage this account on the future.
Add a new account to the local store. It returns a token used to manage this account on the future.
summary: Add account
/wallet/bootstrap:
get:
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 @@ -1939,12 +2063,22 @@ components:
properties:
address:
type: string
joinHeight:
type: integer
name:
type: string
power:
type: integer
proposals:
type: integer
pubKey:
type: string
score:
type: integer
validatorAddress:
type: string
votes:
type: integer
type: object
api.ValidatorList:
properties:
Expand Down Expand Up @@ -2190,6 +2324,8 @@ components:
type: integer
Tx_SetAccountInfoURI:
type: integer
Tx_SetAccountValidator:
type: integer
Tx_SetProcessCensus:
type: integer
Tx_SetProcessQuestionIndex:
Expand Down Expand Up @@ -2344,6 +2480,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 Expand Up @@ -2776,8 +2929,14 @@ components:
$ref: '#/components/schemas/models.FaucetPackage'
infoURI:
type: string
name:
type: string
nonce:
type: integer
publicKey:
items:
type: integer
type: array
txtype:
$ref: '#/components/schemas/models.TxType'
type: object
Expand Down Expand Up @@ -2915,6 +3074,7 @@ components:
- 24
- 25
- 26
- 27
type: integer
x-enum-varnames:
- TxType_TX_UNKNOWN
Expand Down Expand Up @@ -2944,6 +3104,7 @@ components:
- TxType_SET_ACCOUNT_SIK
- TxType_DEL_ACCOUNT_SIK
- TxType_REGISTER_SIK
- TxType_SET_ACCOUNT_VALIDATOR
models.Tx_Admin:
properties:
admin:
Expand Down

0 comments on commit 67072fa

Please sign in to comment.