lnrpc: add additional REST binding for QueryRoutes

Lists with non-primitive members aren't supported in the query string of
a GET request with the current version of the grpc-gateway library. To
allow route_hints to be set through REST, we also offer a POST endpoint
for that call where the encoding of the request parameter can be
specified as JSON.
This commit is contained in:
Oliver Gugger committed 2022-09-19 10:18:34 +02:00
1 parent 202fcd6672
commit 01cd1c991e
3 files changed
+273

No files matched your search

+3
View File
@@ -111,6 +111,9 @@ http:
get: "/v1/graph/node/{pub_key}"
- selector: lnrpc.Lightning.QueryRoutes
get: "/v1/graph/routes/{pub_key}/{amt}"
additional_bindings:
- post: "/v1/graph/routes/{pub_key}/{amt}"
body: "*"
- selector: lnrpc.Lightning.GetNetworkInfo
get: "/v1/graph/info"
- selector: lnrpc.Lightning.StopDaemon