Overview
Summary
Contact
Donate
Imprint
Prompt for the
DisasterEventView
Please create a React-JS view called "DisasterEventView" for the fields of the DisasterEvent entity. The DisasterEventView must contain the following fields: - name: Country type: Country - name: Description type: STRING - name: EndDate type: DATE - name: EventType type: STRING - name: Name type: STRING - name: Region type: Region - name: StartDate type: DATE The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [Region] select control should be loaded from the relative URL: "/RegionService/region" (HTTP-GET) An existing DisasterEvent entity should be loaded from the relative URL: "/WindLayerService/disasterevent/{id}" (HTTP-GET) If a new DisasterEvent entity has been created, the new entity should be posted to the relative URL: "/WindLayerService/disasterevent" (HTTP-POST) If an existing DisasterEvent entity has been updated, the modified entity should be sent to the relative URL: "/WindLayerService/disasterevent/{id}" (HTTP-PUT) If an existing DisasterEvent entity has to be deleted, the following relative URL should be called: "/WindLayerService/disasterevent/{id}" (HTTP-DELETE) Add a HTML table to the view with the following DeploymentDisasterEvent columns: - column: DisasterEvent - column: ServiceDeployment The table should have the title "DeploymentDisasterEvents" und the data must be loaded from the server with the following relative URL: "/WindLayerService/deploymentdisasterevent/disasterevent/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint