mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-05-29 00:21:58 +08:00
* feat: implement an api to get all contracts which implement a given trait * test: add test cases for contract/trait endpoint * docs: added docs for contract/trait endpoint * fix: add return statment after response * perf: add index for jsonb abi column * refactor: use createIndex method * fix: use get request instead of post for contracts trait * docs: update docs for trait/contract api * fix: fixed rebase issue * test: add test for large query data * refactor: change path of contract/by_trait api
30 lines
660 B
JSON
30 lines
660 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "GET list of contracts",
|
|
"title": "ContractListResponse",
|
|
"type": "object",
|
|
"required": [
|
|
"results",
|
|
"limit",
|
|
"offset"
|
|
],
|
|
"properties": {
|
|
"limit": {
|
|
"type": "integer",
|
|
"description": "The number of contracts to return"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"description": "The number to contracts to skip (starting at `0`)",
|
|
"default": 0
|
|
},
|
|
"results": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "../../entities/contracts/smart-contract.schema.json"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|