Pokemon¶
Suspending calls
Every PokeApi.get() snippet below is suspend — see Suspending calls for what that means and the getBlocking alternative.
In the Pokemon package, you'll get the following classes according to their endpoint. You can
Ability¶
This class is used to make request on this endpoint: ability/{id or name}.
Characteristic¶
This class is used to make request on this endpoint: characteristic/{id or name}.
EggGroup¶
This class is used to make request on this endpoint: egg-group/{id or name}.
Gender¶
This class is used to make request on this endpoint: gender/{id or name}.
GrowthRate¶
This class is used to make request on this endpoint: growth-rate/{id or name}.
Nature¶
This class is used to make request on this endpoint: nature/{id or name}.
PokeathlonStat¶
This class is used to make request on this endpoint: pokeathlon-stat/{id or name}.
Pokemon¶
This class is used to make request on this endpoint: pokemon/{id or name}.
PokemonLocationArea¶
This class is used to make request on this endpoint: pokemon/{id or name}/encounters.
PokemonColor¶
This class is used to make request on this endpoint: pokemon-color/{id or name}.
PokemonForm¶
This class is used to make request on this endpoint: pokemon-form/{id or name}.
PokemonHabitat¶
This class is used to make request on this endpoint: pokemon-habitat/{id or name}.
PokemonShape¶
This class is used to make request on this endpoint: pokemon-shape/{id or name}.
PokemonSpecies¶
This class is used to make request on this endpoint: pokemon-species/{id or name}.
Stat¶
This class is used to make request on this endpoint: stat/{id or name}.
Type¶
This class is used to make request on this endpoint: type/{id or name}.