Overview
Summary
Contact
Donate
Imprint
Prompt for the
AdvocacyGroupApp
Please create a React-JS application for the AdvocacyGroupModule. The application has to offer the following views for the user interface: 1. AdvocacyGroupView 2. CompanyAdvocacyGroupRelationView 3. OfficeView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The AdvocacyGroupView must contain the following fields: - name: Country type: Country - name: Description type: STRING - name: GroupType type: STRING - name: Name type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) An existing AdvocacyGroup entity should be loaded from the relative URL: "/AdvocacyGroupService/advocacygroup/{id}" (HTTP-GET) If a new AdvocacyGroup entity has been created, the new entity should be posted to the relative URL: "/AdvocacyGroupService/advocacygroup" (HTTP-POST) If an existing AdvocacyGroup entity has been updated, the modified entity should be sent to the relative URL: "/AdvocacyGroupService/advocacygroup/{id}" (HTTP-PUT) If an existing AdvocacyGroup entity has to be deleted, the following relative URL should be called: "/AdvocacyGroupService/advocacygroup/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CompanyAdvocacyGroupRelation columns: - column: AdvocacyGroup - column: Description - column: Company - column: RelationType The table should have the title "CompanyAdvocacyGroupRelations" und the data must be loaded from the server with the following relative URL: "/AdvocacyGroupService/companyadvocacygrouprelation/advocacygroup/{id}" 2. The CompanyAdvocacyGroupRelationView must contain the following fields: - name: AdvocacyGroup type: AdvocacyGroup - name: Company type: Company - name: Description type: STRING - name: RelationType type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [AdvocacyGroup] select control should be loaded from the relative URL: "/AdvocacyGroupService/advocacygroup" (HTTP-GET) An existing CompanyAdvocacyGroupRelation entity should be loaded from the relative URL: "/AdvocacyGroupService/companyadvocacygrouprelation/{id}" (HTTP-GET) If a new CompanyAdvocacyGroupRelation entity has been created, the new entity should be posted to the relative URL: "/AdvocacyGroupService/companyadvocacygrouprelation" (HTTP-POST) If an existing CompanyAdvocacyGroupRelation entity has been updated, the modified entity should be sent to the relative URL: "/AdvocacyGroupService/companyadvocacygrouprelation/{id}" (HTTP-PUT) If an existing CompanyAdvocacyGroupRelation entity has to be deleted, the following relative URL should be called: "/AdvocacyGroupService/companyadvocacygrouprelation/{id}" (HTTP-DELETE) 3. The OfficeView must contain the following fields: - name: AddressLine type: STRING - name: City type: City - name: ClosedDate type: DATE - name: Company type: Company - name: Country type: Country - name: IsHeadquarters type: BOOL - name: OpenedDate type: DATE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/ListingService/city" (HTTP-GET) An existing Office entity should be loaded from the relative URL: "/AdvocacyGroupService/office/{id}" (HTTP-GET) If a new Office entity has been created, the new entity should be posted to the relative URL: "/AdvocacyGroupService/office" (HTTP-POST) If an existing Office entity has been updated, the modified entity should be sent to the relative URL: "/AdvocacyGroupService/office/{id}" (HTTP-PUT) If an existing Office entity has to be deleted, the following relative URL should be called: "/AdvocacyGroupService/office/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint