-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I'm opening this issue because:
- I have a question/doubt.
- I want to report a bug/issue.
- I want to request a feature or suggest something.
- Other:
Description:
Related to #1, it would be nice to be able to query the API for multiple pokemon in a single request. Could be done via query param ?number=1,3,4,7 on the pokemon endpoint.
Alternatively, you could implement a search endpoint that will return a list of pokemon name/id via a POST request with body data to filter. Something like this:
POST: /v1/search
Body: {"name":"saur"}
This would return all pokemon whose names match saur.
Body: {"gen":[1,2],"name":"saur"}
This would return all pokemon whose names match saur and are in the first 2 gens.
Search would then have the same data model as pokemon, but always return an array instead of a single.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request