Entity Name: ShopOwner
Data Schema: Shop
Master Service: ShopLicenseService
| 3.1 CountryService | 3.2 DiscountCampaignService | 3.3 ProductService | 3.4 ShopLicenseService |
| Property Name | Datatype | Data Entity | Reference Entity |
| OwnerName | STRING | ShopOwner | |
| PrimaryKey | LONG | ShopOwner | |
| ServerReplicationVersion | LONG | ShopOwner | |
| ShopLicense | LONG | ShopOwner | ShopLicense |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /shopowner/{id} | GET | findShopOwnerById(id) | ShopLicenseService | ShopOwner |
| /shopowner | GET | findAllShopOwner() | ShopLicenseService | ShopOwner |
| /shopowner/shoplicense/{id} | GET | findAllShopOwnerOfShopLicense(id) | ShopLicenseService | ShopLicense ShopOwner |
| /shopowner | POST | insertShopOwner(shopowner) | ShopLicenseService | ShopOwner |
| /shopowner/{id} | PUT | updateShopOwnerById(shopowner) | ShopLicenseService | ShopOwner |
| /shopowner/{id} | DELETE | deleteShopOwnerById(id) | ShopLicenseService | ShopOwner |
Pseudo code snippet
final ShopOwner shopowner = (ShopOwner) this.callMicroservice(ServiceNames.SHOP_LICENSE_SERVICE + "/shopowner/" + id, ShopOwner.class);