You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I'm opening this issue because:
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.
The text was updated successfully, but these errors were encountered: