Entity Name: OrderItem
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 | OrderItem | |
| CustomerOrder | LONG | OrderItem | CustomerOrder |
| PrimaryKey | LONG | OrderItem | |
| Product | LONG | OrderItem | Product |
| ServerReplicationVersion | LONG | OrderItem | |
| ShopOwner | LONG | OrderItem |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /orderitem | GET | findAllOrderItem() | ProductService | OrderItem |
| /orderitem/{id} | GET | findOrderItemById(id) | ProductService | OrderItem |
| /orderitem/product/{id} | GET | findAllOrderItemOfProduct(id) | ProductService | Product OrderItem |
| /customerdelivery/orderitem/{id} | GET | findAllCustomerDeliveryOfOrderItem(id) | ProductService | OrderItem CustomerDelivery |
| /orderitem | POST | insertOrderItem(orderitem) | ProductService | OrderItem |
| /orderitem/{id} | DELETE | deleteOrderItemById(id) | ProductService | OrderItem |
| /orderitem/customerorder/{id} | GET | findAllOrderItemOfCustomerOrder(id) | ProductService | CustomerOrder OrderItem |
| /orderitem/{id} | PUT | updateOrderItemById(orderitem) | ProductService | OrderItem |
Pseudo code snippet
final OrderItem orderitem = (OrderItem) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/orderitem/" + id, OrderItem.class);