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

frdrpc: add POST bindings for more complex calls #164

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

guggero
Copy link
Member

@guggero guggero commented Apr 19, 2023

Fixes #163.

Using GET mappings for REST means we have to place every parameter in the URL query. This is not very convenient if there are many parameters. But even worse, some types like arrays/slices aren't supported in query parameters and map types are very awkward to use.
So we add POST mappings for the calls that have many or more complex request parameters.

Pull Request Checklist

  • Update MinLndVersion if your PR uses new RPC methods or fields of lnd.

Using GET mappings for REST means we have to place every parameter in
the URL query. This is not very convenient if there are many parameters.
But even worse, some types like arrays/slices aren't supported in query
parameters and map types are very awkward to use.
So we add POST mappings for the calls that have many or more complex
request parameters.
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM 📮

Copy link
Member

@ellemouton ellemouton left a comment

Choose a reason for hiding this comment

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

tACK 🔥

@guggero guggero merged commit 28d3c34 into lightninglabs:master Apr 19, 2023
@guggero guggero deleted the rest-post-mappings branch April 19, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Can't send custom_prices over REST protocol
3 participants