Entity Name: ShopLicense
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 |
EmployeeCount | INT | ShopLicense | |
LicenseName | STRING | ShopLicense | |
Price | DOUBLE | ShopLicense | |
PrimaryKey | LONG | ShopLicense | |
ServerReplicationVersion | LONG | ShopLicense | |
TransactionFee | DOUBLE | ShopLicense | |
WarehouseCount | INT | ShopLicense |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/shoplicense | GET | findAllShopLicense() | ShopLicenseService | ShopLicense |
/shoplicense/{id} | PUT | updateShopLicenseById(shoplicense) | ShopLicenseService | ShopLicense |
/shoplicense | POST | insertShopLicense(shoplicense) | ShopLicenseService | ShopLicense |
/shoplicense/{id} | DELETE | deleteShopLicenseById(id) | ShopLicenseService | ShopLicense |
/shoplicense/{id} | GET | findShopLicenseById(id) | ShopLicenseService | ShopLicense |
/shopowner/shoplicense/{id} | GET | findAllShopOwnerOfShopLicense(id) | ShopLicenseService | ShopLicense ShopOwner |
Pseudo code snippet
final ShopLicense shoplicense = (ShopLicense) this.callMicroservice(ServiceNames.SHOP_LICENSE_SERVICE + "/shoplicense/" + id, ShopLicense.class);