Plane
Plane Data
| API | Description |
|---|---|
| PUT api/plane/deactivate/{id} |
Deactivates Plane in the database |
| GET api/Plane |
List of all Planes in the database |
| GET api/Plane/{id} |
Complete data of a single Plane |
| POST api/Plane |
Creates Plane in the database |
| PUT api/Plane |
Edits Plane present in the database |
| DELETE api/Plane/{id} |
Deletes Plane from the database |
Booking
Booking Data
| API | Description |
|---|---|
| PUT api/booking/passenger/{bookingId} |
Switches Booking Holder |
| GET api/Booking |
List of all Bookings in the database |
| GET api/Booking/{id} |
Complete data of a single Booking |
| POST api/Booking |
Creates Booking in the database |
| DELETE api/Booking/{id} |
Deletes Booking from the database |
Flight
Flight Data
| API | Description |
|---|---|
| PUT api/flight/plane/{flightId} |
Switches Flight Plane in the database |
| PUT api/flight/date/{flightId} |
Switches Flight Date in the database |
| GET api/Flight |
List of all Flights in the database |
| GET api/Flight/{id} |
Complete data of a single Flight |
| POST api/Flight |
Creates Flight in the database |
| DELETE api/Flight/{id} |
Deletes Flight from the database |
Ticket
Ticket Data
| API | Description |
|---|---|
| GET api/ticket/booking/{bookingId} |
List of every Ticket in a given Booking |
| GET api/ticket/flight/{flightId} |
List of every Ticket in a given Flight |
| PUT api/ticket/passenger/{ticketId} |
Switches Ticket Holder in the database |
| GET api/Ticket/{id} |
Complete data of a single Ticket |
| POST api/Ticket |
Creates Ticket in the database |
| DELETE api/Ticket/{id} |
Deletes Ticket from the database |
Airport
Airport Data
| API | Description |
|---|---|
| GET api/Airport |
List of all Airports in the database |
| GET api/Airport/{id} |
Complete data of a single Airport |
| POST api/Airport |
Creates Airport in the database |
| PUT api/Airport |
Edits Airport present in the database |
| DELETE api/Airport/{id} |
Deletes airport from the database |
Passenger
Passenger Data
| API | Description |
|---|---|
| GET api/Passenger |
List of all Passengers in the database |
| GET api/Passenger/{id} |
Complete data of a single Passenger |
| POST api/Passenger |
Creates Passenger in the database |
| PUT api/Passenger |
Edits Passenger in the database |
| DELETE api/Passenger/{id} |
Deletes Passenger from the database |