Fix grpc-gateway config

This commit is contained in:
Nex 2020-06-11 16:00:46 +08:00
parent 2ec22cc92b
commit c81305e766

View File

@ -14,16 +14,23 @@ http:
post: /v0/transactions post: /v0/transactions
body: "*" body: "*"
- selector: bdware.bdledger.api.Query.GetBlockByHash - selector: bdware.bdledger.api.Query.GetBlockByHash
get: /v0/blocks/{hash} post: /v0/blocks/{hash}
body: "*"
- selector: bdware.bdledger.api.Query.GetBlocks - selector: bdware.bdledger.api.Query.GetBlocks
get: /v0/blocks post: /v0/blocks
body: "*"
- selector: bdware.bdledger.api.Query.CountBlocks - selector: bdware.bdledger.api.Query.CountBlocks
get: /v0/blocks/count post: /v0/blocks/count
body: "*"
- selector: bdware.bdledger.api.Query.GetTransactionByHash - selector: bdware.bdledger.api.Query.GetTransactionByHash
get: /v0/transactions/{hash} post: /v0/transactions/{hash}
body: "*"
- selector: bdware.bdledger.api.Query.GetTransactionByBlockHashAndIndex - selector: bdware.bdledger.api.Query.GetTransactionByBlockHashAndIndex
get: /v0/blocks/{block_hash}/transactions/{index} post: /v0/blocks/{block_hash}/transactions/{index}
body: "*"
- selector: bdware.bdledger.api.Query.GetTransactions - selector: bdware.bdledger.api.Query.GetTransactions
get: /v0/transactions post: /v0/transactions
body: "*"
- selector: bdware.bdledger.api.Query.CountTransactions - selector: bdware.bdledger.api.Query.CountTransactions
get: /v0/transactions/count post: /v0/transactions/count
body: "*"