/airplanes

Primary LanguageJavaScript

Routes Documentation

Routes

GET - Queries in db/queries/read.js file

  • GET /airports - Get all airports
  • GET /airports/:id - Get airports by id
  • GET /flights - Get all flights
  • GET /flight/:id - Get flight by id
  • GET /models - Get all models
  • GET /model/:id - Get model by id
  • GET /planes - Get all planes
  • GET /plane/:id - Get plane by id

DELETE - Queries in db/queries/remove.js file

  • DELETE /flight/:flightcod - Delete airport by id

POST - Queries in db/queries/create.js file

  • POST /flight - Create flight

  • POST /plane - Create plane

PUT - Queries in db/queries/update.js file

  • PUT /flight/:id - Update flight by id

  • PUT /plane/:id - Update plane by id

Airplane-API