Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
GefahrApp
Please create a React-JS application for the GefahrModule. The application has to offer the following views for the user interface: 1. BaustelleGefahrView 2. GefahrView 3. SicherungsanlageView 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 BaustelleGefahrView must contain the following fields: - name: Baustelle type: Baustelle - name: Beschreibung type: STRING - name: Gefahr type: Gefahr - name: RisikoBewertung type: STRING The data source for the [Gefahr] select control should be loaded from the relative URL: "/GefahrService/gefahr" (HTTP-GET) The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing BaustelleGefahr entity should be loaded from the relative URL: "/GefahrService/baustellegefahr/{id}" (HTTP-GET) If a new BaustelleGefahr entity has been created, the new entity should be posted to the relative URL: "/GefahrService/baustellegefahr" (HTTP-POST) If an existing BaustelleGefahr entity has been updated, the modified entity should be sent to the relative URL: "/GefahrService/baustellegefahr/{id}" (HTTP-PUT) If an existing BaustelleGefahr entity has to be deleted, the following relative URL should be called: "/GefahrService/baustellegefahr/{id}" (HTTP-DELETE) 2. The GefahrView must contain the following fields: - name: Beschreibung type: STRING - name: Bezeichnung type: STRING - name: Kategorie type: STRING An existing Gefahr entity should be loaded from the relative URL: "/GefahrService/gefahr/{id}" (HTTP-GET) If a new Gefahr entity has been created, the new entity should be posted to the relative URL: "/GefahrService/gefahr" (HTTP-POST) If an existing Gefahr entity has been updated, the modified entity should be sent to the relative URL: "/GefahrService/gefahr/{id}" (HTTP-PUT) If an existing Gefahr entity has to be deleted, the following relative URL should be called: "/GefahrService/gefahr/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SicherheitsMassnahme columns: - column: Gefahr - column: Baustelle - column: Verantwortlicher - column: MassnahmeBeschreibung - column: Rechtsgrundlage The table should have the title "SicherheitsMassnahmes" und the data must be loaded from the server with the following relative URL: "/BaustelleService/sicherheitsmassnahme/gefahr/{id}" Add a HTML table to the view with the following BaustelleGefahr columns: - column: Beschreibung - column: Baustelle - column: RisikoBewertung - column: Gefahr The table should have the title "BaustelleGefahrs" und the data must be loaded from the server with the following relative URL: "/GefahrService/baustellegefahr/gefahr/{id}" 3. The SicherungsanlageView must contain the following fields: - name: AktivBis type: DATE - name: AktivVon type: DATE - name: AnlageTyp type: STRING - name: Baustelle type: Baustelle - name: Beschreibung type: STRING - name: Standort type: STRING The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Sicherungsanlage entity should be loaded from the relative URL: "/GefahrService/sicherungsanlage/{id}" (HTTP-GET) If a new Sicherungsanlage entity has been created, the new entity should be posted to the relative URL: "/GefahrService/sicherungsanlage" (HTTP-POST) If an existing Sicherungsanlage entity has been updated, the modified entity should be sent to the relative URL: "/GefahrService/sicherungsanlage/{id}" (HTTP-PUT) If an existing Sicherungsanlage entity has to be deleted, the following relative URL should be called: "/GefahrService/sicherungsanlage/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum