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

Allow to pass payload as query parameters of GET request #29

Closed
NoverNobida opened this issue Oct 9, 2021 · 1 comment
Closed

Allow to pass payload as query parameters of GET request #29

NoverNobida opened this issue Oct 9, 2021 · 1 comment

Comments

@NoverNobida
Copy link

NoverNobida commented Oct 9, 2021

Is it possible to achieve this form:
https://domain.com/api/messages/?data={"recipient_token":"f9e1-bb79-4db2-8fff-cfbb8","type":"TEXT","origin":"somedevice"}
Because not all software supports all values, such as origin.

@muety
Copy link
Owner

muety commented Oct 9, 2021

I think you're requesting two different things, aren't you? First one would be to be able to leave out the origin parameter and second one is to pass the payload via URL parameters, instead of as part of the body.

To conform with web standards, the format would look slightly different (see below), but apart from that this is definitely something we could implement. Thanks for these feature requests.

Example:
GET /api/messages?recipient_token=f9e1-bb79-4db2-8fff-cfbb8&origin=somedevice&type=TEXT

@muety muety changed the title URL with body JSON content Allow to pass payload as query parameters of GET request Oct 9, 2021
@muety muety closed this as completed in 517a01f Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants