Table of content



The Country entity within the microservice architecture

Entity-Relationship-Model of <CountryService>

Entity Name: Country

Data Schema: Shop

Master Service: CountryService


Dataflow of entity of Country

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CountryCodeSTRINGCountry
CountryNameSTRINGCountry
PrimaryKeyLONGCountry
ServerReplicationVersionLONGCountry

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/warehouse/country/{id}GETfindAllWarehouseOfCountry(id)CountryServiceCountry Warehouse
/salestax/country/{id}GETfindAllSalesTaxOfCountry(id)ProductServiceCountry SalesTax
/product/countryoforigin/{id}GETfindAllProductOfCountryOfOrigin(id)ProductServiceCountry Product
/country/{id}DELETEdeleteCountryById(id)CountryServiceCountry
/country/{id}GETfindCountryById(id)CountryServiceCountry
/countryGETfindAllCountry()CountryServiceCountry
/country/{id}PUTupdateCountryById(country)CountryServiceCountry
/productprice/country/{id}GETfindAllProductPriceOfCountry(id)ProductServiceCountry ProductPrice
/countryPOSTinsertCountry(country)CountryServiceCountry
/shopcustomer/country/{id}GETfindAllShopCustomerOfCountry(id)CountryServiceCountry ShopCustomer

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