Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all Pokemons by generation #833

Closed
moyzlevi opened this issue May 16, 2023 · 1 comment
Closed

Get all Pokemons by generation #833

moyzlevi opened this issue May 16, 2023 · 1 comment

Comments

@moyzlevi
Copy link
Contributor

moyzlevi commented May 16, 2023

Describe the feature you'd like to request

I'd like to request a feature that can retrieve all pokemons from the poke-api that belong to the same generation. Like getting all the pokemons of generation III or II. Currently the poke-api doesn't have this feature, but it would be nice to ease a pokedex-like web app.

Describe the solution you'd like

The only solution I can think of is doing a request of all 1200 pokemons from the api and after that, filtering the array to return only the pokemons of the specific generation.

Describe alternatives you've considered

There are no alternatives.

@moyzlevi
Copy link
Contributor Author

The poke api already does this by sending all pokemons by generation in the generation Resource. My bad. I'm gonna close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant