Overview
Summary
Contact
Donate
Imprint
Prompt for the
CountryApp
Please create a React-JS application for the CountryModule. The application has to offer the following views for the user interface: 1. CountryView 2. RegulatoryApprovalView 3. RegulatoryAuthorityView 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 CountryView must contain the following fields: - name: IsoCode type: STRING - name: Name type: STRING An existing Country entity should be loaded from the relative URL: "/CountryService/country/{id}" (HTTP-GET) If a new Country entity has been created, the new entity should be posted to the relative URL: "/CountryService/country" (HTTP-POST) If an existing Country entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/country/{id}" (HTTP-PUT) If an existing Country entity has to be deleted, the following relative URL should be called: "/CountryService/country/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RegulatoryAuthority columns: - column: Name - column: Country - column: Website The table should have the title "RegulatoryAuthoritys" und the data must be loaded from the server with the following relative URL: "/CountryService/regulatoryauthority/country/{id}" Add a HTML table to the view with the following Region columns: - column: Name - column: Country The table should have the title "Regions" und the data must be loaded from the server with the following relative URL: "/RegionService/region/country/{id}" Add a HTML table to the view with the following ServiceArea columns: - column: AreaType - column: Description - column: Region - column: Name - column: Country The table should have the title "ServiceAreas" und the data must be loaded from the server with the following relative URL: "/RegionService/servicearea/country/{id}" Add a HTML table to the view with the following PartnerOrganization columns: - column: Country - column: Website - column: Name - column: OrganizationType The table should have the title "PartnerOrganizations" und the data must be loaded from the server with the following relative URL: "/ServiceDeploymentService/partnerorganization/country/{id}" Add a HTML table to the view with the following DisasterEvent columns: - column: Name - column: Country - column: EventType - column: EndDate - column: Description - column: Region - column: StartDate The table should have the title "DisasterEvents" und the data must be loaded from the server with the following relative URL: "/WindLayerService/disasterevent/country/{id}" 2. The RegulatoryApprovalView must contain the following fields: - name: ApprovalDate type: DATE - name: ExpiryDate type: DATE - name: Notes type: STRING - name: Project type: Project - name: RegulatoryAuthority type: RegulatoryAuthority - name: ServiceArea type: ServiceArea The data source for the [Project] select control should be loaded from the relative URL: "/ProjectService/project" (HTTP-GET) The data source for the [ServiceArea] select control should be loaded from the relative URL: "/RegionService/servicearea" (HTTP-GET) The data source for the [RegulatoryAuthority] select control should be loaded from the relative URL: "/CountryService/regulatoryauthority" (HTTP-GET) An existing RegulatoryApproval entity should be loaded from the relative URL: "/CountryService/regulatoryapproval/{id}" (HTTP-GET) If a new RegulatoryApproval entity has been created, the new entity should be posted to the relative URL: "/CountryService/regulatoryapproval" (HTTP-POST) If an existing RegulatoryApproval entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/regulatoryapproval/{id}" (HTTP-PUT) If an existing RegulatoryApproval entity has to be deleted, the following relative URL should be called: "/CountryService/regulatoryapproval/{id}" (HTTP-DELETE) 3. The RegulatoryAuthorityView must contain the following fields: - name: Country type: Country - name: Name type: STRING - name: Website type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) An existing RegulatoryAuthority entity should be loaded from the relative URL: "/CountryService/regulatoryauthority/{id}" (HTTP-GET) If a new RegulatoryAuthority entity has been created, the new entity should be posted to the relative URL: "/CountryService/regulatoryauthority" (HTTP-POST) If an existing RegulatoryAuthority entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/regulatoryauthority/{id}" (HTTP-PUT) If an existing RegulatoryAuthority entity has to be deleted, the following relative URL should be called: "/CountryService/regulatoryauthority/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RegulatoryApproval columns: - column: ApprovalDate - column: Notes - column: Project - column: ExpiryDate - column: RegulatoryAuthority - column: ServiceArea The table should have the title "RegulatoryApprovals" und the data must be loaded from the server with the following relative URL: "/CountryService/regulatoryapproval/regulatoryauthority/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint