Entity Name: FlightRoute
Data Schema: AirportLogistics
Master Service: AirportService
| 3.1 AirplaneService | 3.2 AirportService | 3.3 CargoService | 3.4 CountryService | 3.5 EmployeeService | 3.6 LuggageService |
| 3.7 PassengerBookingService |
| Property Name | Datatype | Data Entity | Reference Entity |
| Destination | LONG | FlightRoute | Airport |
| PrimaryKey | LONG | FlightRoute | |
| ServerReplicationVersion | LONG | FlightRoute | |
| Source | LONG | FlightRoute | Airport |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /flightroute/destination/{id} | GET | findAllFlightRouteOfDestination(id) | AirportService | Airport FlightRoute |
| /flightroute/source/{id} | GET | findAllFlightRouteOfSource(id) | AirportService | Airport FlightRoute |
| /flight/flightroute/{id} | GET | findAllFlightOfFlightRoute(id) | AirportService | FlightRoute Flight |
| /flightroute | POST | insertFlightRoute(flightroute) | AirportService | FlightRoute |
| /flightroute | GET | findAllFlightRoute() | AirportService | FlightRoute |
| /flightroute/{id} | GET | findFlightRouteById(id) | AirportService | FlightRoute |
| /flightroute/{id} | DELETE | deleteFlightRouteById(id) | AirportService | FlightRoute |
| /flightroute/{id} | PUT | updateFlightRouteById(flightroute) | AirportService | FlightRoute |
Pseudo code snippet
final FlightRoute flightroute = (FlightRoute) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/flightroute/" + id, FlightRoute.class);