Under a Pokemon resource (e.g. https://pokeapi.co/api/v2/pokemon/427), the URL to the encounters resource is not full. Meaning, unlike other URLs in the API, the client needs to ensure it requests it by prefixing the protocol and host.
For example:
{
location_area_encounters: "/api/v2/pokemon/427/encounters",
}
Ideally it should be
{
location_area_encounters: "http://pokeapi.co/api/v2/pokemon/427/encounters",
}
Under a Pokemon resource (e.g. https://pokeapi.co/api/v2/pokemon/427), the URL to the encounters resource is not full. Meaning, unlike other URLs in the API, the client needs to ensure it requests it by prefixing the protocol and host.
For example:
Ideally it should be