Files
stacks-blockchain-api/docs/api/contract/smart-contract-list-response.schema.json
Asim Mehmood f18068c300 feat: return all the contracts implement a given trait
* 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
2021-12-05 22:43:04 -06:00

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
}