Entity Name: SalesTax
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 |
Category | INT | SalesTax | |
Country | LONG | SalesTax | Country |
PrimaryKey | LONG | SalesTax | |
ServerReplicationVersion | LONG | SalesTax | |
ShopOwner | LONG | SalesTax | |
TaxInPercent | DOUBLE | SalesTax | |
ValidFrom | LONG | SalesTax |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/salestax/{id} | DELETE | deleteSalesTaxById(id) | ProductService | SalesTax |
/salestax/{id} | GET | findSalesTaxById(id) | ProductService | SalesTax |
/salestax/country/{id} | GET | findAllSalesTaxOfCountry(id) | ProductService | Country SalesTax |
/salestax/{id} | PUT | updateSalesTaxById(salestax) | ProductService | SalesTax |
/product/salestax/{id} | GET | findAllProductOfSalesTax(id) | ProductService | SalesTax Product |
/salestax | POST | insertSalesTax(salestax) | ProductService | SalesTax |
/salestax | GET | findAllSalesTax() | ProductService | SalesTax |
Pseudo code snippet
final SalesTax salestax = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + id, SalesTax.class);