Entity Name: Gate
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 |
GateName | STRING | Gate | |
PrimaryKey | LONG | Gate | |
ServerReplicationVersion | LONG | Gate | |
Terminal | LONG | Gate | Terminal |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/gate | GET | findAllGate() | AirportService | Gate |
/flight/arrivalgate/{id} | GET | findAllFlightOfArrivalGate(id) | AirportService | Gate Flight |
/gate/{id} | GET | findGateById(id) | AirportService | Gate |
/gate | POST | insertGate(gate) | AirportService | Gate |
/flight/departuregate/{id} | GET | findAllFlightOfDepartureGate(id) | AirportService | Gate Flight |
/gate/terminal/{id} | GET | findAllGateOfTerminal(id) | AirportService | Terminal Gate |
/gate/{id} | PUT | updateGateById(gate) | AirportService | Gate |
/gate/{id} | DELETE | deleteGateById(id) | AirportService | Gate |
Pseudo code snippet
final Gate gate = (Gate) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/gate/" + id, Gate.class);