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

Query params not working properly? #642

Closed
travismoulton opened this issue Mar 29, 2021 · 3 comments
Closed

Query params not working properly? #642

travismoulton opened this issue Mar 29, 2021 · 3 comments
Milestone

Comments

@travismoulton
Copy link

Steps to Reproduce

Hi,
Has anyone else run into querying the API to search for exercises by category not working properly this morning? All query params besides language seem to be ignored.

https://wger.de/api/v2/exercise/?muscles=1&equipment=3 returns all workouts
https://wger.de/api/v2/exercise/?id=345 returns all workouts
https://wger.de/api/v2/exercise/?language=2 only returns workouts in English
https://wger.de/api/v2/exercise/?language=2&category=10 returns all workouts in English

Thanks everyone, btw this API is great!

@rolandgeider
Copy link
Member

You're right, something is seems wrong, I'll take a look

@rolandgeider
Copy link
Member

Fixed in master, will update the website shortly.

And as a special present, you can now do ?category=1,2 and it will search for exercises in categories 1 OR 2

@rolandgeider rolandgeider added this to the 2.0 milestone Mar 29, 2021
@travismoulton
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants