Skip to content

encounters return is different than other endpoints' #332

@jrubinator

Description

@jrubinator

Right now the encounters endpoint lives at https://pokeapi.co/api/v2/pokemon/{id}/encounters

For a given id, the URL returns a list, rather than a hash. On the other hand, the endpoint URLs (eg. /api/v2/pokemon) return very similar data, but prefix that data with results: Would it make sense to do this here? Unfortunately, that's not a backwards-compatible change.

I suggest this because I believe it would make it easier for API clients to handle the response - see eg.
PokeAPI/pokebase#10

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionv3Changes to integrate in a possible new API version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions