To start Azure function locally you will need:
- Azure CLI (installation instructions)
- Node.js v8.x (installation instructions)
- .NET Core SDK (installation instructions)
- Azure Functions Core Tools (installation instructions)
Extend Azure Function (HttpTrigger), so it will be able to receive a list of pokemon ids (multiple) and type (single) and then return a list of pokemon names, which match the requested type (property "type") as JSON. Additional info:
- Remember about SOLID
- To fetch pokemon data use: https://pokeapi.co
- Azure Function should be triggered via GET (HTTP triggered function)
- Please use: lodash, axios and inversify
- Use existing structure and extend it
- Example invoke:
localhost:7071/api/HttpTrigger?id=1&id=2&id=5&type=grass
- Example response:
{ status: 200, body: { pokemons: ["bulbasaur", "ivysaur"] } }
Please do not use any external packages dedicated to handle pokeapi.
In case of any questions send email to: [email protected]
Good luck ๐