Entity Name: Terminal
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 |
Airport | LONG | Terminal | Airport |
PrimaryKey | LONG | Terminal | |
ServerReplicationVersion | LONG | Terminal | |
TerminalName | STRING | Terminal |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/terminal/airport/{id} | GET | findAllTerminalOfAirport(id) | AirportService | Airport Terminal |
/terminal | POST | insertTerminal(terminal) | AirportService | Terminal |
/terminal/{id} | DELETE | deleteTerminalById(id) | AirportService | Terminal |
/terminal | GET | findAllTerminal() | AirportService | Terminal |
/terminal/{id} | PUT | updateTerminalById(terminal) | AirportService | Terminal |
/gate/terminal/{id} | GET | findAllGateOfTerminal(id) | AirportService | Terminal Gate |
/terminal/{id} | GET | findTerminalById(id) | AirportService | Terminal |
Pseudo code snippet
final Terminal terminal = (Terminal) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/terminal/" + id, Terminal.class);