Skip to content

Commit edab62a

Browse files
docs: added examples to Faucets, fees, fungible tokens and Info API's (#1234)
* Added examples to Faucets, fees, fungible tokens and Info API's Added examples for burn block, faucets,info,fungible tokens API's * Removed response 429 and changed an example to mainnet for network block time * Add enum value for get_network_block_time_by_network API * Describe max for limit attribute in tokens/ft/metadata api
1 parent 117b76b commit edab62a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

docs/openapi.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ paths:
674674
required: true
675675
schema:
676676
type: string
677+
example: 0x00000000000000000002bba732926cf68b6eda3e2cdbc2a85af79f10efeeeb10
677678
get:
678679
summary: Get block by burnchain block hash
679680
description: Retrieves block details of a specific block for a given burnchain block hash
@@ -704,6 +705,7 @@ paths:
704705
required: true
705706
schema:
706707
type: number
708+
example: 744603
707709
get:
708710
summary: Get block by burnchain height
709711
description: Retrieves block details of a specific block for a given burn chain height
@@ -1776,7 +1778,8 @@ paths:
17761778
schema:
17771779
type: string
17781780
enum: [testnet, mainnet]
1779-
description: Which network to retrieve the target block time of
1781+
example: mainnet
1782+
description: the target block time for a given network (testnet, mainnet).
17801783
responses:
17811784
200:
17821785
description: Success
@@ -1800,7 +1803,8 @@ paths:
18001803
required: false
18011804
schema:
18021805
type: number
1803-
description: The block height at which to query supply details from, if not provided then the latest block height is used
1806+
example: 200
1807+
description: Supply details are queried from specified block height. If the block height is not specified, the latest block height is taken as default value.
18041808
responses:
18051809
200:
18061810
description: Success
@@ -1856,7 +1860,8 @@ paths:
18561860
required: false
18571861
schema:
18581862
type: number
1859-
description: The block height at which to query supply details from, if not provided then the latest block height is used
1863+
example: 200
1864+
description: Supply details are queried from specified block height. If the block height is not specified, the latest block height is taken as default value.
18601865
responses:
18611866
200:
18621867
description: Success
@@ -2902,17 +2907,20 @@ paths:
29022907
parameters:
29032908
- name: limit
29042909
in: query
2905-
description: max number of tokens to fetch
2910+
description: max number of tokens to fetch.
29062911
required: false
29072912
schema:
29082913
type: integer
2914+
example: 100
2915+
maximum: 200
29092916
- name: offset
29102917
in: query
29112918
description: index of first tokens to fetch
29122919
required: false
29132920
example: 42000
29142921
schema:
29152922
type: integer
2923+
example: 500
29162924
responses:
29172925
200:
29182926
description: List of fungible tokens metadata
@@ -3198,6 +3206,7 @@ paths:
31983206
required: true
31993207
schema:
32003208
type: string
3209+
example: SPSCWDV3RKV5ZRN1FQD84YE1NQFEDJ9R1F4DYQ11.newyorkcitycoin-token-v2
32013210
responses:
32023211
200:
32033212
description: Fungible tokens metadata for contract id
@@ -3214,7 +3223,7 @@ paths:
32143223
summary: Fetch fee rate
32153224
deprecated: true
32163225
description: |
3217-
**NOTE:** This endpoint is deprecated in favor of [Get approximate fees for the given transaction](#operation/post_fee_transaction).
3226+
**NOTE:** This endpoint is deprecated in favor of [Get approximate fees for a given transaction](#operation/post_fee_transaction).
32183227
32193228
Retrieves estimated fee rate.
32203229
tags:
@@ -3239,7 +3248,7 @@ paths:
32393248

32403249
/v2/fees/transaction:
32413250
post:
3242-
summary: Get approximate fees for the given transaction
3251+
summary: Get approximate fees for a given transaction
32433252
tags:
32443253
- Fees
32453254
description: |

0 commit comments

Comments
 (0)