Entity Name: ProductDelivery
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 |
Amount | DOUBLE | ProductDelivery | |
DeliveryDate | LONG | ProductDelivery | |
Distributor | LONG | ProductDelivery | Distributor |
PrimaryKey | LONG | ProductDelivery | |
Product | LONG | ProductDelivery | Product |
Remarks | STRING | ProductDelivery | |
ServerReplicationVersion | LONG | ProductDelivery | |
ShopOwner | LONG | ProductDelivery | |
Warehouse | LONG | ProductDelivery | Warehouse |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/productdelivery/{id} | DELETE | deleteProductDeliveryById(id) | ProductService | ProductDelivery |
/productdelivery | GET | findAllProductDelivery() | ProductService | ProductDelivery |
/productdelivery/{id} | PUT | updateProductDeliveryById(productdelivery) | ProductService | ProductDelivery |
/productdelivery/product/{id} | GET | findAllProductDeliveryOfProduct(id) | ProductService | Product ProductDelivery |
/productdelivery/distributor/{id} | GET | findAllProductDeliveryOfDistributor(id) | ProductService | Distributor ProductDelivery |
/productdelivery/warehouse/{id} | GET | findAllProductDeliveryOfWarehouse(id) | ProductService | Warehouse ProductDelivery |
/productdelivery | POST | insertProductDelivery(productdelivery) | ProductService | ProductDelivery |
/productdelivery/{id} | GET | findProductDeliveryById(id) | ProductService | ProductDelivery |
Pseudo code snippet
final ProductDelivery productdelivery = (ProductDelivery) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productdelivery/" + id, ProductDelivery.class);