Pokeapi: Pokemon.location_area_encounters URL is not consistent with other URLs

Created on 15 Oct 2016  路  5Comments  路  Source: PokeAPI/pokeapi

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",
}
Beginner friendly bug

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.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sindrekjr picture sindrekjr  路  8Comments

jonatasbaldin picture jonatasbaldin  路  7Comments

tdmalone picture tdmalone  路  3Comments

renatoi picture renatoi  路  7Comments

phalt picture phalt  路  8Comments