Entity Name: Airport
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 |
AirportName | STRING | Airport | |
City | LONG | Airport | City |
PrimaryKey | LONG | Airport | |
ServerReplicationVersion | LONG | Airport |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/flightroute/destination/{id} | GET | findAllFlightRouteOfDestination(id) | AirportService | Airport FlightRoute |
/airport/city/{id} | GET | findAllAirportOfCity(id) | AirportService | City Airport |
/terminal/airport/{id} | GET | findAllTerminalOfAirport(id) | AirportService | Airport Terminal |
/flightroute/source/{id} | GET | findAllFlightRouteOfSource(id) | AirportService | Airport FlightRoute |
/airport | GET | findAllAirport() | AirportService | Airport |
/airport/{id} | DELETE | deleteAirportById(id) | AirportService | Airport |
/airport | POST | insertAirport(airport) | AirportService | Airport |
/airport/{id} | GET | findAirportById(id) | AirportService | Airport |
/airport/{id} | PUT | updateAirportById(airport) | AirportService | Airport |
Pseudo code snippet
final Airport airport = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + id, Airport.class);