Skip to content

Commit

Permalink
added block search apis endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: krriscode <[email protected]>
  • Loading branch information
krriscode authored and ArchanaArige committed Apr 17, 2024
1 parent 3fc4180 commit c8104c9
Showing 1 changed file with 141 additions and 0 deletions.
141 changes: 141 additions & 0 deletions app/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,147 @@
}
]
}
},
"/api/fetchBlockByTxId/{channel_genesis_hash}/{txnId}": {
"get": {
"tags": ["Blocks"],
"summary": "Query to fetch block details",
"operationId": "fetchBlockByTxId",
"parameters": [
{
"name": "channel_genesis_hash",
"in": "path",
"description": "Please provide channel hash value",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "txnId",
"in": "path",
"description": "Please provide transaction id",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {}
},
"400": {
"description": "Bad Request",
"content": {}
},
"401": {
"description": "UnAuthorized",
"content": {}
},
"404": {
"description": "Not found",
"content": {}
}
},
"security": [
{
"bearer": []
}
]
}
},
"/api/fetchBlockByHash/{channel_genesis_hash}/{block_hash}": {
"get": {
"tags": ["Blocks"],
"summary": "Query to fetch block details",
"operationId": "fetchBlockByHash",
"parameters": [
{
"name": "channel_genesis_hash",
"in": "path",
"description": "Please provide channel hash value",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "block_hash",
"in": "path",
"description": "Please provide block hash",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {}
},
"400": {
"description": "Bad Request",
"content": {}
},
"401": {
"description": "UnAuthorized",
"content": {}
},
"404": {
"description": "Not found",
"content": {}
}
},
"security": [
{
"bearer": []
}
]
}
},
"/api/fetchEndorsersCommitter/{channel_genesis_hash}": {
"get": {
"tags": ["Channel"],
"summary": "Query to fetch all Endorsers and Committers of channel",
"operationId": "fetchEndorsersCommitter",
"parameters": [
{
"name": "channel_genesis_hash",
"in": "path",
"description": "Please provide channel hash value",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {}
},
"400": {
"description": "Bad Request",
"content": {}
},
"401": {
"description": "UnAuthorized",
"content": {}
},
"404": {
"description": "Not found",
"content": {}
}
},
"security": [
{
"bearer": []
}
]
}
}
},
"components": {
Expand Down

0 comments on commit c8104c9

Please sign in to comment.