Entity Name: Country
Data Schema: Shop
Master Service: CountryService
| 3.1 CountryService | 3.2 DiscountCampaignService | 3.3 ProductService | 3.4 ShopLicenseService |
| Property Name | Datatype | Data Entity | Reference Entity |
| CountryCode | STRING | Country | |
| CountryName | STRING | Country | |
| PrimaryKey | LONG | Country | |
| ServerReplicationVersion | LONG | Country |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /warehouse/country/{id} | GET | findAllWarehouseOfCountry(id) | CountryService | Country Warehouse |
| /salestax/country/{id} | GET | findAllSalesTaxOfCountry(id) | ProductService | Country SalesTax |
| /product/countryoforigin/{id} | GET | findAllProductOfCountryOfOrigin(id) | ProductService | Country Product |
| /country/{id} | DELETE | deleteCountryById(id) | CountryService | Country |
| /country/{id} | GET | findCountryById(id) | CountryService | Country |
| /country | GET | findAllCountry() | CountryService | Country |
| /country/{id} | PUT | updateCountryById(country) | CountryService | Country |
| /productprice/country/{id} | GET | findAllProductPriceOfCountry(id) | ProductService | Country ProductPrice |
| /country | POST | insertCountry(country) | CountryService | Country |
| /shopcustomer/country/{id} | GET | findAllShopCustomerOfCountry(id) | CountryService | Country ShopCustomer |
Pseudo code snippet
final Country country = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + id, Country.class);