Entity Name: CargoType
Data Schema: AirportLogistics
Master Service: CargoService
| 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 |
| Description | STRING | CargoType | |
| PrimaryKey | LONG | CargoType | |
| ServerReplicationVersion | LONG | CargoType | |
| TypeName | STRING | CargoType |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /cargo/cargotype/{id} | GET | findAllCargoOfCargoType(id) | CargoService | CargoType Cargo |
| /cargotype/{id} | GET | findCargoTypeById(id) | CargoService | CargoType |
| /cargotype/{id} | DELETE | deleteCargoTypeById(id) | CargoService | CargoType |
| /cargotype/{id} | PUT | updateCargoTypeById(cargotype) | CargoService | CargoType |
| /cargotype | GET | findAllCargoType() | CargoService | CargoType |
| /cargotype | POST | insertCargoType(cargotype) | CargoService | CargoType |
Pseudo code snippet
final CargoType cargotype = (CargoType) this.callMicroservice(ServiceNames.CARGO_SERVICE + "/cargotype/" + id, CargoType.class);