Skip to content

Retrieve multiple pokemon in a single request #16

@Szeraax

Description

@Szeraax

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions