Entity Name: DiscountCampaignProduct
Data Schema: Shop
Master Service: DiscountCampaignService
3.1 CountryService | 3.2 DiscountCampaignService | 3.3 ProductService | 3.4 ShopLicenseService |
Property Name | Datatype | Data Entity | Reference Entity |
DiscountCampaign | LONG | DiscountCampaignProduct | DiscountCampaign |
PrimaryKey | LONG | DiscountCampaignProduct | |
Product | LONG | DiscountCampaignProduct | Product |
ServerReplicationVersion | LONG | DiscountCampaignProduct | |
ShopOwner | LONG | DiscountCampaignProduct |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/discountcampaignproduct/product/{id} | GET | findAllDiscountCampaignProductOfProduct(id) | DiscountCampaignService | Product DiscountCampaignProduct |
/discountcampaignproduct | POST | insertDiscountCampaignProduct(discountcampaignproduct) | DiscountCampaignService | DiscountCampaignProduct |
/discountcampaignproduct/{id} | PUT | updateDiscountCampaignProductById(discountcampaignproduct) | DiscountCampaignService | DiscountCampaignProduct |
/discountcampaignproduct/{id} | GET | findDiscountCampaignProductById(id) | DiscountCampaignService | DiscountCampaignProduct |
/discountcampaignproduct/discountcampaign/{id} | GET | findAllDiscountCampaignProductOfDiscountCampaign(id) | DiscountCampaignService | DiscountCampaign DiscountCampaignProduct |
/discountcampaignproduct/{id} | DELETE | deleteDiscountCampaignProductById(id) | DiscountCampaignService | DiscountCampaignProduct |
/discountcampaignproduct | GET | findAllDiscountCampaignProduct() | DiscountCampaignService | DiscountCampaignProduct |
Pseudo code snippet
final DiscountCampaignProduct discountcampaignproduct = (DiscountCampaignProduct) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discountcampaignproduct/" + id, DiscountCampaignProduct.class);