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 |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/country | POST | insertCountry(country) | CountryService | Country |
/passenger/nationality/{id} | GET | findAllPassengerOfNationality(id) | PassengerBookingService | Country Passenger |
/country | GET | findAllCountry() | CountryService | Country |
/city/country/{id} | GET | findAllCityOfCountry(id) | CountryService | Country City |
/country/{id} | GET | findCountryById(id) | CountryService | Country |
/country/{id} | PUT | updateCountryById(country) | CountryService | Country |
/country/{id} | DELETE | deleteCountryById(id) | CountryService | Country |
Pseudo code snippet
final Country country = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + id, Country.class);