Entity Name: PurchaseRule
Data Schema: Shop
Master Service: ProductService
3.1 CountryService | 3.2 DiscountCampaignService | 3.3 ProductService | 3.4 ShopLicenseService |
Property Name | Datatype | Data Entity | Reference Entity |
CreationDate | LONG | PurchaseRule | |
NotificationEmail | STRING | PurchaseRule | |
PrimaryKey | LONG | PurchaseRule | |
Product | LONG | PurchaseRule | Product |
ServerReplicationVersion | LONG | PurchaseRule | |
ShopOwner | LONG | PurchaseRule | |
Threshold | INT | PurchaseRule | |
Warehouse | LONG | PurchaseRule | Warehouse |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/purchaserule/product/{id} | GET | findAllPurchaseRuleOfProduct(id) | ProductService | Product PurchaseRule |
/purchaserule | GET | findAllPurchaseRule() | ProductService | PurchaseRule |
/purchaserule/{id} | GET | findPurchaseRuleById(id) | ProductService | PurchaseRule |
/purchaserule/{id} | PUT | updatePurchaseRuleById(purchaserule) | ProductService | PurchaseRule |
/purchaserule/warehouse/{id} | GET | findAllPurchaseRuleOfWarehouse(id) | ProductService | Warehouse PurchaseRule |
/purchaserule | POST | insertPurchaseRule(purchaserule) | ProductService | PurchaseRule |
/purchaserule/{id} | DELETE | deletePurchaseRuleById(id) | ProductService | PurchaseRule |
Pseudo code snippet
final PurchaseRule purchaserule = (PurchaseRule) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/purchaserule/" + id, PurchaseRule.class);