PokeAPI / pokedex-promise-v2

An easy way to use pokeapi v2 with promises in node.js
MIT License
510 stars 89 forks source link

Support for arrays in requests #3

Closed torch2424 closed 8 years ago

torch2424 commented 8 years ago

Hello!

I was wondering if we could possibly request multiple pokemon in one call.

Like perhaps in a getPokemonByName call, if we pass an array of pokemon names (as strings), we could get an array as a response for the corresponding pokemon names.

The reason why I asked, is using pokeapi, I built a little battle similuator (nothing like "pokemon showdown", but something to just kill time), and it helps to call for multiple pokemon and or moves at once, to get everything at once to make response times a bit faster, and little bit less load on the backend.

This is just a suggestion, and I'd love to offer any help with this if it is decided this would be a nice feature. Just let me know what direction would be a good start. Thanks!

tasadurian commented 8 years ago

This is a great idea. I will look into implementing this.