Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lnrpc: add additional REST binding for QueryRoutes #6926

Merged
merged 2 commits into from
Sep 20, 2022

Conversation

guggero
Copy link
Collaborator

@guggero guggero commented Sep 19, 2022

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.

Fixes #6752.

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.
@guggero guggero added rpc Related to the RPC interface REST bug fix labels Sep 19, 2022
@guggero guggero added this to the v0.15.2 milestone Sep 19, 2022
Copy link
Collaborator

@positiveblue positiveblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to keep it in mind for other endpoints too 👌

@saubyk saubyk removed this from the v0.15.2 milestone Sep 19, 2022
@saubyk
Copy link
Collaborator

saubyk commented Sep 19, 2022

@guggero added the milestone on the issue instead

Copy link
Collaborator

@yyforyongyu yyforyongyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM⚡️

@guggero guggero merged commit 80049c9 into lightningnetwork:master Sep 20, 2022
@guggero guggero deleted the query-routes-bindings branch September 20, 2022 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix REST rpc Related to the RPC interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GRPC and REST endpoints differ for QueryRoutes (missing route_hints param for REST)
4 participants