Entity Name: City
Data Schema: AirportLogistics
Master Service: CountryService
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 |
CityName | STRING | City | |
Country | LONG | City | Country |
PrimaryKey | LONG | City | |
ServerReplicationVersion | LONG | City |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/city/{id} | DELETE | deleteCityById(id) | CountryService | City |
/airport/city/{id} | GET | findAllAirportOfCity(id) | AirportService | City Airport |
/city | POST | insertCity(city) | CountryService | City |
/city/country/{id} | GET | findAllCityOfCountry(id) | CountryService | Country City |
/city/{id} | PUT | updateCityById(city) | CountryService | City |
/city/{id} | GET | findCityById(id) | CountryService | City |
/city | GET | findAllCity() | CountryService | City |
Pseudo code snippet
final City city = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + id, City.class);