Entity Name: ProductPrice
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 |
Country | LONG | ProductPrice | Country |
Price | DOUBLE | ProductPrice | |
PrimaryKey | LONG | ProductPrice | |
Product | LONG | ProductPrice | Product |
ServerReplicationVersion | LONG | ProductPrice | |
ShopOwner | LONG | ProductPrice | |
ValidFrom | LONG | ProductPrice |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/productprice/{id} | GET | findProductPriceById(id) | ProductService | ProductPrice |
/productprice/{id} | DELETE | deleteProductPriceById(id) | ProductService | ProductPrice |
/productprice | POST | insertProductPrice(productprice) | ProductService | ProductPrice |
/productprice/{id} | PUT | updateProductPriceById(productprice) | ProductService | ProductPrice |
/productprice/country/{id} | GET | findAllProductPriceOfCountry(id) | ProductService | Country ProductPrice |
/productprice/product/{id} | GET | findAllProductPriceOfProduct(id) | ProductService | Product ProductPrice |
/productprice | GET | findAllProductPrice() | ProductService | ProductPrice |
Pseudo code snippet
final ProductPrice productprice = (ProductPrice) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productprice/" + id, ProductPrice.class);