From c2228d5601cb7f08a98c682523dd4a89dd1336a9 Mon Sep 17 00:00:00 2001 From: Nex Date: Mon, 15 Jun 2020 14:28:42 +0800 Subject: [PATCH] Update grpc-gateway config: Fix '/' in base64 hash --- grpc/pb/bdware/bdledger/api/grpc-gateway.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc/pb/bdware/bdledger/api/grpc-gateway.yml b/grpc/pb/bdware/bdledger/api/grpc-gateway.yml index fff8ad2..e0386c0 100644 --- a/grpc/pb/bdware/bdledger/api/grpc-gateway.yml +++ b/grpc/pb/bdware/bdledger/api/grpc-gateway.yml @@ -14,7 +14,7 @@ http: post: /v0/ledgers/{ledger}/transactions body: "*" - selector: bdware.bdledger.api.Query.GetBlockByHash - get: /v0/ledgers/{ledger}/blocks/{hash} + get: /v0/ledgers/{ledger}/block - selector: bdware.bdledger.api.Query.GetBlocks post: /v0/ledgers/{ledger}/blocks/query body: "*" @@ -22,7 +22,7 @@ http: post: /v0/ledgers/{ledger}/blocks/count body: "*" - selector: bdware.bdledger.api.Query.GetTransactionByHash - get: /v0/ledgers/{ledger}/transactions/{hash} + get: /v0/ledgers/{ledger}/transaction - selector: bdware.bdledger.api.Query.GetTransactionByBlockHashAndIndex get: /v0/ledgers/{ledger}/blocks/{block_hash}/transactions/{index} - selector: bdware.bdledger.api.Query.GetTransactions