Code Monkey home page Code Monkey logo

lo10-backend's Introduction

Route de l'api

API du site

Aeroport

  • GET /api/aeroport.php (AUTH): retourne l'ensemble des aéroports partenaires
  • POST /api/aeroport.php : créer un aéroport

Location

  • GET /api/location.php (utilisateur_id) : retourne les locations d'un utilisateur
  • POST /api/location.php : créer une location
  • GET /api/location.php (aeroport_id, date_debut, date_fin) : retourne les réservations possibles

Voiture

  • GET /api/voiture.php (id) : retourne une voiture
  • DELETE /api/voiture.php (id) : supprime une voiture
  • GET /api/voiture.php (utilisateur_id) : retourne les voitures d'un utilisateur
  • POST /api/voiture.php : pour créer une voiture

Parking

  • GET /api/parking.php (id) : retourne un parking
  • GET /api/parking.php (aeroport_id) : retourne les parkings d'un aéroport
  • GET /api/parking.php : retourne l'ensemble des parkings
  • POST /api/parking.php : créer un parking

Utilisateurs

  • POST /api/auth.php : pour se connecter, retourne le profil de l'utilisateur
  • GET /api/auth.php (id) : retourne le profil d'un utilisateur
  • GET /api/auth.php : retourne l'ensemble des utilisateurs
  • PUT /api/auth.php (id) : modifie un utilisateur
  • POST /api/signin.php : pour créer un utilisateur

Réservations

  • POST /api/reservation.php : créer une réservation
  • GET /api/reservation.php (locataire_id) : retourne les réservations d'un utilisateur

API ouverte pour l'extérieur

  • GET /api/services/parking.php : retourne l'ensemble des parkings partenaires
  • GET /api/services/location.php (param : aeroport_id, date_debut, date_fin) : retourne l'ensemble des voitures disponibles entre deux dates pour un aéroport donné
  • /api/services/aeroport.php : retourne l'ensemble des aéroports partenaires

lo10-backend's People

Contributors

theobour avatar

Watchers

 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.