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",
}
Nice spot, reckon this could be easily fixed by an eager contributor
Looks like our friend @dhcrain fixed this in PR #274. Any words on why was this bug (or that PR) both closed?
@MestreLion Every outstanding issue was closed around mid-year when PokeAPI was due to shut down. Thankfully, it was decided to keep it running! :D I'll re-open this issue for now; I'm not sure why the PR was closed as that was only quite recent, so I'll leave that for @Naramsim to advise on.
Still open? I would like to contribute
I don't use this API anymore, but trying it out at https://pokeapi.co/, it looks fixed to me.
I'm going to close this issue.
Most helpful comment
@MestreLion Every outstanding issue was closed around mid-year when PokeAPI was due to shut down. Thankfully, it was decided to keep it running! :D I'll re-open this issue for now; I'm not sure why the PR was closed as that was only quite recent, so I'll leave that for @Naramsim to advise on.