kacperhes / hotailors-recruitment-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HOTAILORS IOC RECRUITMENT TASK

Requirements

To start Azure function locally you will need:

  1. Azure CLI (installation instructions)
  2. Node.js v8.x (installation instructions)
  3. .NET Core SDK (installation instructions)
  4. Azure Functions Core Tools (installation instructions)

Task

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: lukasz@hotailors.com

Good luck 🙂

About


Languages

Language:TypeScript 56.0%Language:JavaScript 44.0%