Entity Name: Warehouse
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 |
| City | STRING | Warehouse | |
| Country | LONG | Warehouse | Country |
| PrimaryKey | LONG | Warehouse | |
| ServerReplicationVersion | LONG | Warehouse | |
| ShopOwner | LONG | Warehouse | |
| Street | STRING | Warehouse | |
| WarehouseName | STRING | Warehouse |
| Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
| /warehouse/country/{id} | GET | findAllWarehouseOfCountry(id) | CountryService | Country Warehouse |
| /warehouse/{id} | GET | findWarehouseById(id) | CountryService | Warehouse |
| /warehouse/{id} | PUT | updateWarehouseById(warehouse) | CountryService | Warehouse |
| /warehouse | POST | insertWarehouse(warehouse) | CountryService | Warehouse |
| /warehouse/{id} | DELETE | deleteWarehouseById(id) | CountryService | Warehouse |
| /purchaserule/warehouse/{id} | GET | findAllPurchaseRuleOfWarehouse(id) | ProductService | Warehouse PurchaseRule |
| /productdelivery/warehouse/{id} | GET | findAllProductDeliveryOfWarehouse(id) | ProductService | Warehouse ProductDelivery |
| /warehouseresponsibility/warehouse/{id} | GET | findAllWarehouseResponsibilityOfWarehouse(id) | CountryService | Warehouse WarehouseResponsibility |
| /warehouse | GET | findAllWarehouse() | CountryService | Warehouse |
Pseudo code snippet
final Warehouse warehouse = (Warehouse) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/warehouse/" + id, Warehouse.class);