Entity Name: CustomerGroup
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 |
CreationDate | LONG | CustomerGroup | |
Description | STRING | CustomerGroup | |
GroupName | STRING | CustomerGroup | |
PrimaryKey | LONG | CustomerGroup | |
ServerReplicationVersion | LONG | CustomerGroup | |
ShopOwner | LONG | CustomerGroup |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/customergroupmember/customergroup/{id} | GET | findAllCustomerGroupMemberOfCustomerGroup(id) | CountryService | CustomerGroup CustomerGroupMember |
/customergroup/{id} | GET | findCustomerGroupById(id) | CountryService | CustomerGroup |
/customergroup | POST | insertCustomerGroup(customergroup) | CountryService | CustomerGroup |
/discountcampaigncustomergroup/customergroup/{id} | GET | findAllDiscountCampaignCustomerGroupOfCustomerGroup(id) | DiscountCampaignService | CustomerGroup DiscountCampaignCustomerGroup |
/customergroup/{id} | DELETE | deleteCustomerGroupById(id) | CountryService | CustomerGroup |
/customergroup | GET | findAllCustomerGroup() | CountryService | CustomerGroup |
/customergroup/{id} | PUT | updateCustomerGroupById(customergroup) | CountryService | CustomerGroup |
Pseudo code snippet
final CustomerGroup customergroup = (CustomerGroup) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customergroup/" + id, CustomerGroup.class);