Entity Name: Delivery
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 |
| Conditions | STRING | Delivery | |
| DeliveryDate | LONG | Delivery | |
| PrimaryKey | LONG | Delivery | |
| ServerReplicationVersion | LONG | Delivery | |
| ShopCustomer | LONG | Delivery | ShopCustomer |
| ShopOwner | LONG | Delivery |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /customerdelivery/delivery/{id} | GET | findAllCustomerDeliveryOfDelivery(id) | ProductService | Delivery CustomerDelivery |
| /delivery/{id} | PUT | updateDeliveryById(delivery) | CountryService | Delivery |
| /delivery/{id} | DELETE | deleteDeliveryById(id) | CountryService | Delivery |
| /delivery/shopcustomer/{id} | GET | findAllDeliveryOfShopCustomer(id) | CountryService | ShopCustomer Delivery |
| /delivery/{id} | GET | findDeliveryById(id) | CountryService | Delivery |
| /delivery | GET | findAllDelivery() | CountryService | Delivery |
| /delivery | POST | insertDelivery(delivery) | CountryService | Delivery |
Pseudo code snippet
final Delivery delivery = (Delivery) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/delivery/" + id, Delivery.class);