Code Monkey home page Code Monkey logo

backend-unknowngenius's Introduction

Routes

People

/api/people

Structure de donnée :

[
  {
    "idpeople": 0,
    "name": "string",
    "firstname": "string",
    "birthday": "2019-06-04T15:02:51.498Z",
    "deathdate": "2019-06-04T15:02:51.498Z",
    "gender": "string",
    "idaffiliation": "string",
    "idcountry": "string",
    "idfamily": "string",
    "idprice": [
      {
        "idcategory": "string",
        "year": 0
      }
    ]
  }
]

Filter :

  • gender[]: [ M | F | O ] avec M pour les hommes, F pour les femmes et O pour les organisations
  • idcountry.code[]: Code international du pays voulu (FR pour France, US pour USA, etc...)
  • idprice.idcategory.category[]: Tous les lauréats d'une catégorie

Prizes

/api/prices

Structure de donnée :

[
  {
    "idprice": 0,
    "idcategory": "string",
    "year": 0,
    "idpeople": [
      {
        "name": "string",
        "firstname": "string",
        "birthday": "2019-06-04T15:02:51.620Z",
        "deathdate": "2019-06-04T15:02:51.620Z",
        "gender": "string",
        "idaffiliation": "string",
        "idcountry": "string",
        "idfamily": "string"
      }
    ]
  }
]

Filter:

  • year: Range filter, utiliser 'year[gt]={x}&year[lt]={y}' avec x et y en années, pour obtenir tous les prix entre x et y
    Attention x et y sont exclus du filtre
  • idcategory.category[]: Choix de la catégorie du prix obtenu
  • idpeople.gender[]: Voir people pour les filtres
  • idpeople.idcountry.code[]: Voir people pour les filtres

Attention pour gender et idcountry.code avec price, il suffit qu'un seul des lauréats du prix soit de la nationalité ou du sexe pour que celui-ci apparaisse, une personne ayant gagné 2 prix nobels différents apparaitra 2 fois, de même un lauréats ne répondant pas aux critères demandés peut être retourné si il a gagné un prix en équipe avec un lauréat répondant aux critères.

Categories

/api/categories

Structure de données :

    [
      {
        "idcategory": 0,
        "category": "string"
      }
    ]

Countries

/api/countries

Structure de données :

    [
      {
        "idcountry": 0,
        "name": "string",
        "code": "string"
      }
    ]

backend-unknowngenius's People

Contributors

amauryfaveriel avatar

Watchers

James Cloos 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.