Entity Name: ProductCategory
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 |
| CategoryName | STRING | ProductCategory | |
| Description | STRING | ProductCategory | |
| PrimaryKey | LONG | ProductCategory | |
| ServerReplicationVersion | LONG | ProductCategory | |
| ShopOwner | LONG | ProductCategory |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /productcategory/{id} | DELETE | deleteProductCategoryById(id) | ProductService | ProductCategory |
| /productcategory | GET | findAllProductCategory() | ProductService | ProductCategory |
| /discountcampaignproductcategory/productcategory/{id} | GET | findAllDiscountCampaignProductCategoryOfProductCategory(id) | DiscountCampaignService | ProductCategory DiscountCampaignProductCategory |
| /product/productcategory/{id} | GET | findAllProductOfProductCategory(id) | ProductService | ProductCategory Product |
| /productcategory/{id} | PUT | updateProductCategoryById(productcategory) | ProductService | ProductCategory |
| /productcategory/{id} | GET | findProductCategoryById(id) | ProductService | ProductCategory |
| /productcategory | POST | insertProductCategory(productcategory) | ProductService | ProductCategory |
Pseudo code snippet
final ProductCategory productcategory = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + id, ProductCategory.class);