Git Product home page Git Product logo

lol-rest-api's Introduction

League Of Legends API

  1. Obtener todos los campeones /api/v1/champions
  2. Obtener los datos de un campeon dado su nombre /api/v1/champions/:id

GET /api/vi/champions/missfortune. Debería obtener un objeto con el campéon indetificado con id:"missfortune"

Por implementar

  1. Obten todos los campeones que estén etiquetados con una característica en concreta Ejemplo: /api/v1/champions/tag/:tag . Ejemplo, para un GET a /api/v1/champions/tag/support ; debería devolverme todos los campeones que en su propiedad 'tag' tienen un elemento en el array con el stirng 'Support', tales como Ashe o Sona.

  2. Modifica el GET de /api/v1/champions para que, si le pasamos una QueryString con un parámetro de nombre limit; limite el número de campeones devueltos a dicho valor. Ejemplo:

GET /api/v1/champions?limit=10

Solo devolverá los primeros 10 campeones

Otras entidades en el LOL

  • Items (sanguinaria, filo infinito)
  • Structures (nexo, torres)
  • Maps

Pasos para añadir un nuevo endpoint

  1. Añadir la ruta en routers/championsRoutes.js
  2. Añadir el controlador en controllers/championControllers.js
  3. Implementar el servicio en services/championServices.js
  4. Implementar el acceso al JSON en Champion.js

lol-rest-api's People

Contributors

omiras avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.