From c81305e7660d09b7b49a01e1418200fc4a0b2cfb Mon Sep 17 00:00:00 2001 From: Nex Date: Thu, 11 Jun 2020 16:00:46 +0800 Subject: [PATCH] Fix grpc-gateway config --- grpc/pb/bdware/bdledger/api/grpc-gateway.yml | 21 +++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/grpc/pb/bdware/bdledger/api/grpc-gateway.yml b/grpc/pb/bdware/bdledger/api/grpc-gateway.yml index 0d7d73c..7f1cd1a 100644 --- a/grpc/pb/bdware/bdledger/api/grpc-gateway.yml +++ b/grpc/pb/bdware/bdledger/api/grpc-gateway.yml @@ -14,16 +14,23 @@ http: post: /v0/transactions body: "*" - selector: bdware.bdledger.api.Query.GetBlockByHash - get: /v0/blocks/{hash} + post: /v0/blocks/{hash} + body: "*" - selector: bdware.bdledger.api.Query.GetBlocks - get: /v0/blocks + post: /v0/blocks + body: "*" - selector: bdware.bdledger.api.Query.CountBlocks - get: /v0/blocks/count + post: /v0/blocks/count + body: "*" - selector: bdware.bdledger.api.Query.GetTransactionByHash - get: /v0/transactions/{hash} + post: /v0/transactions/{hash} + body: "*" - 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 - get: /v0/transactions + post: /v0/transactions + body: "*" - selector: bdware.bdledger.api.Query.CountTransactions - get: /v0/transactions/count + post: /v0/transactions/count + body: "*"