/booking-flight-api

Zuri Task: A simple server that allows users to book and get flights

Primary LanguageJavaScript

Booking Flight API

Task title: Booking Flight API

Task Objective: Create a rest API that has the following features

  1. Add/Book Flight
  2. Get all Flight
  3. Get a single Flight
  4. Update/Edit Flight
  5. Delete Flight

for flight let it have the following properties

Json``` { title: "flight to canada", time: 1pm, price: 26000, date: "26-06-2022" }


Clone this GitHub repo
Repository Link or https://github.com/bee-solve/booking-flight-api
- Make changes to the index.js file. Create your own repository and push your code to your created repository. Submit the link to your created GitHub repository.

Emphasis: Do not use MongoDB. Push your Code to your Github repository and submit the link

## CRUD OPERATIONS

### To create a flight send a request to:
> hostmachine/create-flight

### To get a single flight send a request to:
> hostmachine/get-flight/:id

### To get all flights send a request to:
> hostmachine/get-flights

### To update a flight send a request to:
> hostmachine/update-flight/:id

### To delete a flight send a request to:
> hostmachine/delete-flight/:id