Table of content



The ShopLicense entity within the microservice architecture

Entity-Relationship-Model of <ShopLicenseService>

Entity Name: ShopLicense

Data Schema: Shop

Master Service: ShopLicenseService


Dataflow of entity of ShopLicense

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
EmployeeCountINTShopLicense
LicenseNameSTRINGShopLicense
PriceDOUBLEShopLicense
PrimaryKeyLONGShopLicense
ServerReplicationVersionLONGShopLicense
TransactionFeeDOUBLEShopLicense
WarehouseCountINTShopLicense

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/shoplicenseGETfindAllShopLicense()ShopLicenseServiceShopLicense
/shoplicense/{id}PUTupdateShopLicenseById(shoplicense)ShopLicenseServiceShopLicense
/shoplicensePOSTinsertShopLicense(shoplicense)ShopLicenseServiceShopLicense
/shoplicense/{id}DELETEdeleteShopLicenseById(id)ShopLicenseServiceShopLicense
/shoplicense/{id}GETfindShopLicenseById(id)ShopLicenseServiceShopLicense
/shopowner/shoplicense/{id}GETfindAllShopOwnerOfShopLicense(id)ShopLicenseServiceShopLicense ShopOwner

Distributed transaction of <ShopLicense>

Pseudo code snippet

final ShopLicense shoplicense = (ShopLicense) this.callMicroservice(ServiceNames.SHOP_LICENSE_SERVICE + "/shoplicense/" + id, ShopLicense.class);
if (shoplicense != null) {
}
return shoplicense;


Table of content