wger
wger copied to clipboard
Document REST API endpoints for search
There is currently no documentation for searching exercises and ingredients, since they are only used internally for the autocompleter but are something API users can also find useful. TODO:
- Document the endpoints
- Add simple filter options (e.g. the language is auto-selected, it should be possible to override this)
- Make the response returned by both the exercise and ingredient endpoints use the same structure
Hello @rolandgeider ! I've started using the 'wger' app myself. I came across the https://wger.de/api/v2/ page that does show how to access 'exercises' and 'ingredients'. What is this issue asking about in particular?
Let me know if the intended documentation should exist at a different location
Thanks
@fossterer
I believe he is talking about the https://wger.de/api/v2/exercise/search API. Speaking of which I don't believe it has any way of sorting (tried https://wger.de/api/v2/exercise/search?ordering=value).
@rolandgeider To get a return JSON for the search API for exercises try https://wger.de/api/v2/exercise/search/?term=<Search Term>
api is documented with openAPI now, closing