PokeAPI / pokeapi

The Pokémon API
https://pokeapi.co
BSD 3-Clause "New" or "Revised" License
4.41k stars 957 forks source link

Change Resource Name for Giratina #1128

Closed krai-me closed 1 month ago

krai-me commented 2 months ago

I found data for Giratina under the URL https://pokeapi.co/api/v2/pokemon/giratina-altered, but there is no data for https://pokeapi.co/api/v2/pokemon/giratina. Since "Giratina" is the base form of this Pokémon, it would be more intuitive if the base URL https://pokeapi.co/api/v2/pokemon/giratina worked for it as well, without needing the "altered" form suffix.

Steps to Reproduce:

Navigate to the URL: https://pokeapi.co/api/v2/pokemon/giratina. Observe the "Resource not found" error message. Compare this with https://pokeapi.co/api/v2/pokemon/giratina-altered, which works. Expected Behavior: The URL https://pokeapi.co/api/v2/pokemon/giratina should return data for Giratina without the need to specify the form.

Thank you!

Naramsim commented 1 month ago

Hi, you should use the pokemon-species endpoint if you want to query the data about the species and then being redirected to the various pokemon.