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

Send encoded json query param #79

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Send encoded json query param #79

merged 1 commit into from
Dec 1, 2023

Conversation

wweitzel
Copy link
Owner

@wweitzel wweitzel commented Dec 1, 2023

We currently make requests with multiple query params like the following:
https://api.top90.io/goals?skip=0&limit=5&search=&leagueId=0&season=0&teamId=0&fixtureId=0

We will now send a single encoded json param. Something like the following:
http://127.0.0.1:7171/goals?json=%7B%22pagination%22%3A%7B%22skip%22%3A0%2C%22limit%22%3A10%7D%7D.

It is much easier to work with a single request object like that, rather than individual params.

@wweitzel wweitzel merged commit dee55a2 into master Dec 1, 2023
4 checks passed
@wweitzel wweitzel deleted the json-encoding branch December 1, 2023 05:01
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.

1 participant