Entity Name: Customer
Data Schema: AirportLogistics
Master Service: EmployeeService
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 |
CustomerName | STRING | Customer | |
PrimaryKey | LONG | Customer | |
ServerReplicationVersion | LONG | Customer |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/cargobooking/customer/{id} | GET | findAllCargoBookingOfCustomer(id) | EmployeeService | Customer CargoBooking |
/customer/{id} | PUT | updateCustomerById(customer) | EmployeeService | Customer |
/customer/{id} | DELETE | deleteCustomerById(id) | EmployeeService | Customer |
/customer/{id} | GET | findCustomerById(id) | EmployeeService | Customer |
/customer | POST | insertCustomer(customer) | EmployeeService | Customer |
/customer | GET | findAllCustomer() | EmployeeService | Customer |
Pseudo code snippet
final Customer customer = (Customer) this.callMicroservice(ServiceNames.EMPLOYEE_SERVICE + "/customer/" + id, Customer.class);