Overview
Summary
Contact
Donate
Imprint
Prompt for the
WeatherLayerApp
Please create a React-JS application for the WeatherLayerModule. The application has to offer the following views for the user interface: 1. CountryView 2. FilterPresetView 3. MapViewFilterPresetView 4. WeatherLayerView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The CountryView must contain the following fields: - name: IsoCode2 type: STRING - name: IsoCode3 type: STRING - name: Name type: STRING An existing Country entity should be loaded from the relative URL: "/WeatherLayerService/country/{id}" (HTTP-GET) If a new Country entity has been created, the new entity should be posted to the relative URL: "/WeatherLayerService/country" (HTTP-POST) If an existing Country entity has been updated, the modified entity should be sent to the relative URL: "/WeatherLayerService/country/{id}" (HTTP-PUT) If an existing Country entity has to be deleted, the following relative URL should be called: "/WeatherLayerService/country/{id}" (HTTP-DELETE) 2. The FilterPresetView must contain the following fields: - name: CreatedAtUtc type: DATE - name: CriteriaJson type: STRING - name: Name type: STRING - name: Shared type: BOOL - name: UserAccount type: UserAccount The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing FilterPreset entity should be loaded from the relative URL: "/WeatherLayerService/filterpreset/{id}" (HTTP-GET) If a new FilterPreset entity has been created, the new entity should be posted to the relative URL: "/WeatherLayerService/filterpreset" (HTTP-POST) If an existing FilterPreset entity has been updated, the modified entity should be sent to the relative URL: "/WeatherLayerService/filterpreset/{id}" (HTTP-PUT) If an existing FilterPreset entity has to be deleted, the following relative URL should be called: "/WeatherLayerService/filterpreset/{id}" (HTTP-DELETE) Add a HTML table to the view with the following MapViewFilterPreset columns: - column: MapViewSession - column: FilterPreset The table should have the title "MapViewFilterPresets" und the data must be loaded from the server with the following relative URL: "/WeatherLayerService/mapviewfilterpreset/filterpreset/{id}" 3. The MapViewFilterPresetView must contain the following fields: - name: FilterPreset type: FilterPreset - name: MapViewSession type: MapViewSession The data source for the [FilterPreset] select control should be loaded from the relative URL: "/WeatherLayerService/filterpreset" (HTTP-GET) The data source for the [MapViewSession] select control should be loaded from the relative URL: "/UserAccountService/mapviewsession" (HTTP-GET) An existing MapViewFilterPreset entity should be loaded from the relative URL: "/WeatherLayerService/mapviewfilterpreset/{id}" (HTTP-GET) If a new MapViewFilterPreset entity has been created, the new entity should be posted to the relative URL: "/WeatherLayerService/mapviewfilterpreset" (HTTP-POST) If an existing MapViewFilterPreset entity has been updated, the modified entity should be sent to the relative URL: "/WeatherLayerService/mapviewfilterpreset/{id}" (HTTP-PUT) If an existing MapViewFilterPreset entity has to be deleted, the following relative URL should be called: "/WeatherLayerService/mapviewfilterpreset/{id}" (HTTP-DELETE) 4. The WeatherLayerView must contain the following fields: - name: Description type: STRING - name: EnabledForPlans type: STRING - name: LayerType type: STRING - name: Name type: STRING An existing WeatherLayer entity should be loaded from the relative URL: "/WeatherLayerService/weatherlayer/{id}" (HTTP-GET) If a new WeatherLayer entity has been created, the new entity should be posted to the relative URL: "/WeatherLayerService/weatherlayer" (HTTP-POST) If an existing WeatherLayer entity has been updated, the modified entity should be sent to the relative URL: "/WeatherLayerService/weatherlayer/{id}" (HTTP-PUT) If an existing WeatherLayer entity has to be deleted, the following relative URL should be called: "/WeatherLayerService/weatherlayer/{id}" (HTTP-DELETE) Add a HTML table to the view with the following MapViewWeatherLayer columns: - column: MapViewSession - column: WeatherLayer - column: Visible The table should have the title "MapViewWeatherLayers" und the data must be loaded from the server with the following relative URL: "/UserAccountService/mapviewweatherlayer/weatherlayer/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint