You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daemon/algod/api/algod.oas2.json
+54-2Lines changed: 54 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1798,7 +1798,7 @@
1798
1798
},
1799
1799
"/v2/applications/{application-id}/boxes": {
1800
1800
"get": {
1801
-
"description": "Given an application ID, return all Box names. No particular ordering is guaranteed. Request fails when client or server-side configured limits prevent returning all Box names.",
1801
+
"description": "Given an application ID, return all box names. No particular ordering is guaranteed. Request fails when client or server-side configured limits prevent returning all box names.\n\nPagination mode is enabled when any of the following parameters are provided: limit, next, prefix, include, or round. In pagination mode box values can be requested and results are returned in sorted order.\n\nTo paginate: use the next-token from a previous response as the next parameter in the following request. Pin the round parameter to the round value from the first page's response to ensure consistent results across pages. The server enforces a per-response byte limit, so fewer results than limit may be returned even when more exist; the presence of next-token is the only reliable signal that more data is available.",
1802
1802
"tags": ["public", "nonparticipating"],
1803
1803
"produces": ["application/json"],
1804
1804
"schemes": ["http"],
@@ -1814,6 +1814,44 @@
1814
1814
"description": "Max number of box names to return. If max is not set, or max == 0, returns all box-names.",
1815
1815
"name": "max",
1816
1816
"in": "query"
1817
+
},
1818
+
{
1819
+
"type": "integer",
1820
+
"x-go-type": "uint64",
1821
+
"description": "Maximum number of boxes to return per page.",
1822
+
"name": "limit",
1823
+
"in": "query"
1824
+
},
1825
+
{
1826
+
"type": "string",
1827
+
"description": "A box name, in the goal app call arg form 'encoding:value', representing the earliest box name to include in results. Use the next-token from a previous response.",
1828
+
"name": "next",
1829
+
"in": "query"
1830
+
},
1831
+
{
1832
+
"type": "string",
1833
+
"description": "A box name prefix, in the goal app call arg form 'encoding:value', to filter results by. Only boxes whose names start with this prefix will be returned.",
1834
+
"name": "prefix",
1835
+
"in": "query"
1836
+
},
1837
+
{
1838
+
"type": "array",
1839
+
"items": {
1840
+
"type": "string",
1841
+
"enum": ["values"]
1842
+
},
1843
+
"collectionFormat": "csv",
1844
+
"description": "Include additional items in the response. Use `values` to include box values. Multiple values can be comma-separated.",
1845
+
"name": "include",
1846
+
"in": "query"
1847
+
},
1848
+
{
1849
+
"type": "integer",
1850
+
"format": "uint64",
1851
+
"x-go-type": "basics.Round",
1852
+
"description": "Return box data from the given round. The round must be within the node's available range.",
1853
+
"name": "round",
1854
+
"in": "query"
1817
1855
}
1818
1856
],
1819
1857
"responses": {
@@ -3519,6 +3557,11 @@
3519
3557
"description": "Base64 encoded box name",
3520
3558
"type": "string",
3521
3559
"format": "byte"
3560
+
},
3561
+
"value": {
3562
+
"description": "Base64 encoded box value. Present only when the `values` query parameter is set to true.",
3563
+
"type": "string",
3564
+
"format": "byte"
3522
3565
}
3523
3566
}
3524
3567
},
@@ -4872,11 +4915,20 @@
4872
4915
}
4873
4916
},
4874
4917
"BoxesResponse": {
4875
-
"description": "Box names of an application",
4918
+
"description": "Boxes of an application",
4876
4919
"schema": {
4877
4920
"type": "object",
4878
4921
"required": ["boxes"],
4879
4922
"properties": {
4923
+
"round": {
4924
+
"description": "The round for which this information is relevant.",
4925
+
"type": "integer",
4926
+
"x-go-type": "basics.Round"
4927
+
},
4928
+
"next-token": {
4929
+
"description": "Used for pagination, when making another request provide this token with the next parameter. The next token is the box name to use as the pagination cursor, encoded in the goal app call arg form.",
Copy file name to clipboardExpand all lines: daemon/algod/api/algod.oas3.yml
+80-3Lines changed: 80 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -412,6 +412,15 @@
412
412
"$ref": "#/components/schemas/BoxDescriptor"
413
413
},
414
414
"type": "array"
415
+
},
416
+
"next-token": {
417
+
"description": "Used for pagination, when making another request provide this token with the next parameter. The next token is the box name to use as the pagination cursor, encoded in the goal app call arg form.",
418
+
"type": "string"
419
+
},
420
+
"round": {
421
+
"description": "The round for which this information is relevant.",
"description": "Given an application ID, return all Box names. No particular ordering is guaranteed. Request fails when client or server-side configured limits prevent returning all Box names.",
4177
+
"description": "Given an application ID, return all box names. No particular ordering is guaranteed. Request fails when client or server-side configured limits prevent returning all box names.\n\nPagination mode is enabled when any of the following parameters are provided: limit, next, prefix, include, or round. In pagination mode box values can be requested and results are returned in sorted order.\n\nTo paginate: use the next-token from a previous response as the next parameter in the following request. Pin the round parameter to the round value from the first page's response to ensure consistent results across pages. The server enforces a per-response byte limit, so fewer results than limit may be returned even when more exist; the presence of next-token is the only reliable signal that more data is available.",
4163
4178
"operationId": "GetApplicationBoxes",
4164
4179
"parameters": [
4165
4180
{
@@ -4183,6 +4198,59 @@
4183
4198
"x-go-type": "uint64"
4184
4199
},
4185
4200
"x-go-type": "uint64"
4201
+
},
4202
+
{
4203
+
"description": "Maximum number of boxes to return per page.",
4204
+
"in": "query",
4205
+
"name": "limit",
4206
+
"schema": {
4207
+
"type": "integer",
4208
+
"x-go-type": "uint64"
4209
+
},
4210
+
"x-go-type": "uint64"
4211
+
},
4212
+
{
4213
+
"description": "A box name, in the goal app call arg form 'encoding:value', representing the earliest box name to include in results. Use the next-token from a previous response.",
4214
+
"in": "query",
4215
+
"name": "next",
4216
+
"schema": {
4217
+
"type": "string"
4218
+
}
4219
+
},
4220
+
{
4221
+
"description": "A box name prefix, in the goal app call arg form 'encoding:value', to filter results by. Only boxes whose names start with this prefix will be returned.",
4222
+
"in": "query",
4223
+
"name": "prefix",
4224
+
"schema": {
4225
+
"type": "string"
4226
+
}
4227
+
},
4228
+
{
4229
+
"description": "Include additional items in the response. Use `values` to include box values. Multiple values can be comma-separated.",
4230
+
"explode": false,
4231
+
"in": "query",
4232
+
"name": "include",
4233
+
"schema": {
4234
+
"items": {
4235
+
"enum": [
4236
+
"values"
4237
+
],
4238
+
"type": "string"
4239
+
},
4240
+
"type": "array"
4241
+
},
4242
+
"style": "form"
4243
+
},
4244
+
{
4245
+
"description": "Return box data from the given round. The round must be within the node's available range.",
4246
+
"in": "query",
4247
+
"name": "round",
4248
+
"schema": {
4249
+
"format": "uint64",
4250
+
"type": "integer",
4251
+
"x-go-type": "basics.Round"
4252
+
},
4253
+
"x-go-type": "basics.Round"
4186
4254
}
4187
4255
],
4188
4256
"responses": {
@@ -4196,6 +4264,15 @@
4196
4264
"$ref": "#/components/schemas/BoxDescriptor"
4197
4265
},
4198
4266
"type": "array"
4267
+
},
4268
+
"next-token": {
4269
+
"description": "Used for pagination, when making another request provide this token with the next parameter. The next token is the box name to use as the pagination cursor, encoded in the goal app call arg form.",
4270
+
"type": "string"
4271
+
},
4272
+
"round": {
4273
+
"description": "The round for which this information is relevant.",
0 commit comments