From affc42e963a687fbd0b8b1c25c6b340bcdf0d2e0 Mon Sep 17 00:00:00 2001 From: Nex Date: Fri, 4 Sep 2020 12:29:38 +0800 Subject: [PATCH] add HTTP endpoint for Query.GetRecentBlocks --- grpc/pb/bdware/bdledger/api/grpc-gateway.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grpc/pb/bdware/bdledger/api/grpc-gateway.yml b/grpc/pb/bdware/bdledger/api/grpc-gateway.yml index a75c115..4426f16 100644 --- a/grpc/pb/bdware/bdledger/api/grpc-gateway.yml +++ b/grpc/pb/bdware/bdledger/api/grpc-gateway.yml @@ -21,6 +21,8 @@ http: - selector: bdware.bdledger.api.Query.CountBlocks post: /v0/ledgers/{ledger}/blocks/count body: "*" + - selector: bdware.bdledger.api.Query.GetRecentBlocks + get: /v0/ledgers/{ledger}/blocks/recent - selector: bdware.bdledger.api.Query.GetTransactionByHash get: /v0/ledgers/{ledger}/transaction - selector: bdware.bdledger.api.Query.GetTransactionByBlockHashAndIndex