Entity Name: CustomerOrder
Data Schema: Shop
Master Service: CountryService
3.1 CountryService | 3.2 DiscountCampaignService | 3.3 ProductService | 3.4 ShopLicenseService |
Property Name | Datatype | Data Entity | Reference Entity |
OrderDate | LONG | CustomerOrder | |
PrimaryKey | LONG | CustomerOrder | |
Remarks | STRING | CustomerOrder | |
ServerReplicationVersion | LONG | CustomerOrder | |
ShopCustomer | LONG | CustomerOrder | ShopCustomer |
ShopOwner | LONG | CustomerOrder |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/customerorder/{id} | GET | findCustomerOrderById(id) | CountryService | CustomerOrder |
/customerorder/shopcustomer/{id} | GET | findAllCustomerOrderOfShopCustomer(id) | CountryService | ShopCustomer CustomerOrder |
/customerorder/{id} | PUT | updateCustomerOrderById(customerorder) | CountryService | CustomerOrder |
/customerorder | POST | insertCustomerOrder(customerorder) | CountryService | CustomerOrder |
/orderitem/customerorder/{id} | GET | findAllOrderItemOfCustomerOrder(id) | ProductService | CustomerOrder OrderItem |
/customerorder | GET | findAllCustomerOrder() | CountryService | CustomerOrder |
/customerorder/{id} | DELETE | deleteCustomerOrderById(id) | CountryService | CustomerOrder |
Pseudo code snippet
final CustomerOrder customerorder = (CustomerOrder) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customerorder/" + id, CustomerOrder.class);