Table of content



The Country entity within the microservice architecture

Entity-Relationship-Model of <CountryService>

Entity Name: Country

Data Schema: AirportLogistics

Master Service: CountryService


Dataflow of entity of Country

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService

Entity Properties

Property NameDatatypeData EntityReference Entity
CountryNameSTRINGCountry
PrimaryKeyLONGCountry
ServerReplicationVersionLONGCountry

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/countryPOSTinsertCountry(country)CountryServiceCountry
/passenger/nationality/{id}GETfindAllPassengerOfNationality(id)PassengerBookingServiceCountry Passenger
/countryGETfindAllCountry()CountryServiceCountry
/city/country/{id}GETfindAllCityOfCountry(id)CountryServiceCountry City
/country/{id}GETfindCountryById(id)CountryServiceCountry
/country/{id}PUTupdateCountryById(country)CountryServiceCountry
/country/{id}DELETEdeleteCountryById(id)CountryServiceCountry

Distributed transaction of <Country>

Pseudo code snippet

final Country country = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + id, Country.class);
if (country != null) {
}
return country;


Table of content