mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 22:43:34 +08:00
* fix: openapi lint validator * fix: balances schema * fix: add title to all entities * fix: some additionalProperties and duplicate names * fix: remove additional properties for rosetta * fix: rosetta tests * style: remove empty description
30 lines
708 B
JSON
30 lines
708 B
JSON
{
|
|
"description": "GET request that returns blocks",
|
|
"additionalProperties": false,
|
|
"title": "BlockListResponse",
|
|
"type": "object",
|
|
"required": ["results", "limit", "offset", "total"],
|
|
"properties": {
|
|
"limit": {
|
|
"type": "integer",
|
|
"maximum": 30,
|
|
"description": "The number of blocks to return"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"description": "The number to blocks to skip (starting at `0`)",
|
|
"default": 0
|
|
},
|
|
"total": {
|
|
"type": "integer",
|
|
"description": "The number of blocks available"
|
|
},
|
|
"results": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "../../entities/blocks/block.schema.json"
|
|
}
|
|
}
|
|
}
|
|
}
|