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. BaustellenschildView 3. BaustoffView 4. GefahrView 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 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 BaustellenschildView must contain the following fields: - name: Baustelle type: Baustelle - name: SchildTyp type: STRING - name: StandortBeschreibung type: STRING - name: TextInhalt type: STRING The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Baustellenschild entity should be loaded from the relative URL: "/GefahrService/baustellenschild/{id}" (HTTP-GET) If a new Baustellenschild entity has been created, the new entity should be posted to the relative URL: "/GefahrService/baustellenschild" (HTTP-POST) If an existing Baustellenschild entity has been updated, the modified entity should be sent to the relative URL: "/GefahrService/baustellenschild/{id}" (HTTP-PUT) If an existing Baustellenschild entity has to be deleted, the following relative URL should be called: "/GefahrService/baustellenschild/{id}" (HTTP-DELETE) 3. The BaustoffView must contain the following fields: - name: Baustelle type: Baustelle - name: Bezeichnung type: STRING - name: Einheit type: STRING - name: Kategorie type: STRING - name: LagerOrt type: STRING - name: Menge type: STRING The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Baustoff entity should be loaded from the relative URL: "/GefahrService/baustoff/{id}" (HTTP-GET) If a new Baustoff entity has been created, the new entity should be posted to the relative URL: "/GefahrService/baustoff" (HTTP-POST) If an existing Baustoff entity has been updated, the modified entity should be sent to the relative URL: "/GefahrService/baustoff/{id}" (HTTP-PUT) If an existing Baustoff entity has to be deleted, the following relative URL should be called: "/GefahrService/baustoff/{id}" (HTTP-DELETE) 4. 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}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum