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

Unavailble id filter for some endpoint with the REST API #452

Closed
clallavena opened this issue Feb 11, 2020 · 4 comments
Closed

Unavailble id filter for some endpoint with the REST API #452

clallavena opened this issue Feb 11, 2020 · 4 comments
Milestone

Comments

@clallavena
Copy link

Hello !

I'm looking to use the filter in some endpoint and I've noticed that for some endpoints, filter with ID is not available, like http://wger.de/api/v2/equipment?id=1 cannot give me the right equipment.

Can you pls give me hint if I do it wrong?
Appreciate.

@rolandgeider
Copy link
Member

Filtering for IDs for all data endpoints is a sensible feature.

TODO: make sure that 'id' is included in filterset_fields

@oconnelc
Copy link
Contributor

If no one else is looking at this, I'd like to try and fix.

@rolandgeider
Copy link
Member

Go ahead!

@rolandgeider
Copy link
Member

I just noticed, this is actually not needed, to get the details of a single object (equipment or something else) you call /api/v2/equipment/1/

Closing here

@rolandgeider rolandgeider added this to the 2.0 milestone Nov 8, 2020
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

3 participants