Entity Name | Alias Name | Microservice | Data Schema |
Airport | Airport | AirportService | AirportLogistics |
City | City | CountryService | AirportLogistics |
Country | Country | CountryService | AirportLogistics |
Passenger | Passenger | PassengerBookingService | AirportLogistics |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/city | GET | findAllCity() | CountryService | City |
/city/country/{id} | GET | findAllCityOfCountry(id) | CountryService | Country City |
/country | POST | insertCountry(country) | CountryService | Country |
/country/{id} | GET | findCountryById(id) | CountryService | Country |
/city/{id} | DELETE | deleteCityById(id) | CountryService | City |
/city/{id} | PUT | updateCityById(city) | CountryService | City |
/country/{id} | PUT | updateCountryById(country) | CountryService | Country |
/country | GET | findAllCountry() | CountryService | Country |
/city/{id} | GET | findCityById(id) | CountryService | City |
/country/{id} | DELETE | deleteCountryById(id) | CountryService | Country |
/city | POST | insertCity(city) | CountryService | City |
3.1 AirplaneService | 3.2 AirportService | 3.3 CargoService | 3.4 CountryService | 3.5 EmployeeService | 3.6 LuggageService |
3.7 PassengerBookingService |
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 |
Pseudo code snippet
final City city = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + id, City.class);Entity Name: Country
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 |
CountryName | STRING | Country | |
PrimaryKey | LONG | Country | |
ServerReplicationVersion | LONG | Country |
Pseudo code snippet
final Country country = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + id, Country.class);