Table of content



3.4. ShopLicenseService


Entity-Relationship-Model of ShopLicenseService

Schema Entities

Entity NameAlias NameMicroserviceData Schema
ShopLicenseShopLicenseShopLicenseServiceShop
ShopOwnerShopOwnerShopLicenseServiceShop

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/shoplicensePOSTinsertShopLicense(shoplicense)ShopLicenseServiceShopLicense
/shopowner/{id}GETfindShopOwnerById(id)ShopLicenseServiceShopOwner
/shopowner/{id}PUTupdateShopOwnerById(shopowner)ShopLicenseServiceShopOwner
/shoplicense/{id}GETfindShopLicenseById(id)ShopLicenseServiceShopLicense
/shoplicense/{id}DELETEdeleteShopLicenseById(id)ShopLicenseServiceShopLicense
/shopowner/{id}DELETEdeleteShopOwnerById(id)ShopLicenseServiceShopOwner
/shoplicense/{id}PUTupdateShopLicenseById(shoplicense)ShopLicenseServiceShopLicense
/shopownerGETfindAllShopOwner()ShopLicenseServiceShopOwner
/shopowner/shoplicense/{id}GETfindAllShopOwnerOfShopLicense(id)ShopLicenseServiceShopLicense ShopOwner
/shopownerPOSTinsertShopOwner(shopowner)ShopLicenseServiceShopOwner
/shoplicenseGETfindAllShopLicense()ShopLicenseServiceShopLicense

ShopLicenseService inside the microservice architecture

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService





3.4.1 ShopLicense


Entity Name: ShopLicense

Data Schema: Shop

Master Service: ShopLicenseService


Call graph 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

Pseudo code snippet

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


3.4.2 ShopOwner


Entity Name: ShopOwner

Data Schema: Shop

Master Service: ShopLicenseService


Call graph of entity of ShopOwner

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
OwnerNameSTRINGShopOwner
PrimaryKeyLONGShopOwner
ServerReplicationVersionLONGShopOwner
ShopLicenseLONGShopOwnerShopLicense

Pseudo code snippet

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


Table of content