Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
VorfallArtApp
Please create a React-JS application for the VorfallArtModule. The application has to offer the following views for the user interface: 1. VorfallView 2. VorfallArtView 3. WasserstoffSystemView 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 VorfallView must contain the following fields: - name: AnBehoerdeGemeldet type: BOOL - name: Beschreibung type: STRING - name: Schweregrad type: STRING - name: Tankstelle type: Tankstelle - name: VorfallArt type: VorfallArt - name: Zeitpunkt type: DATE The data source for the [Tankstelle] select control should be loaded from the relative URL: "/TankstelleService/tankstelle" (HTTP-GET) The data source for the [VorfallArt] select control should be loaded from the relative URL: "/VorfallArtService/vorfallart" (HTTP-GET) An existing Vorfall entity should be loaded from the relative URL: "/VorfallArtService/vorfall/{id}" (HTTP-GET) If a new Vorfall entity has been created, the new entity should be posted to the relative URL: "/VorfallArtService/vorfall" (HTTP-POST) If an existing Vorfall entity has been updated, the modified entity should be sent to the relative URL: "/VorfallArtService/vorfall/{id}" (HTTP-PUT) If an existing Vorfall entity has to be deleted, the following relative URL should be called: "/VorfallArtService/vorfall/{id}" (HTTP-DELETE) 2. The VorfallArtView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING - name: Name type: STRING An existing VorfallArt entity should be loaded from the relative URL: "/VorfallArtService/vorfallart/{id}" (HTTP-GET) If a new VorfallArt entity has been created, the new entity should be posted to the relative URL: "/VorfallArtService/vorfallart" (HTTP-POST) If an existing VorfallArt entity has been updated, the modified entity should be sent to the relative URL: "/VorfallArtService/vorfallart/{id}" (HTTP-PUT) If an existing VorfallArt entity has to be deleted, the following relative URL should be called: "/VorfallArtService/vorfallart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Vorfall columns: - column: Schweregrad - column: Tankstelle - column: Beschreibung - column: Zeitpunkt - column: VorfallArt - column: AnBehoerdeGemeldet The table should have the title "Vorfalls" und the data must be loaded from the server with the following relative URL: "/VorfallArtService/vorfall/vorfallart/{id}" 3. The WasserstoffSystemView must contain the following fields: - name: HatVorkuehlung type: BOOL - name: KraftstoffArt type: KraftstoffArt - name: MaxDruckBar type: STRING - name: SpeicherKapazitaet type: STRING - name: Tankstelle type: Tankstelle The data source for the [KraftstoffArt] select control should be loaded from the relative URL: "/KraftstoffArtService/kraftstoffart" (HTTP-GET) The data source for the [Tankstelle] select control should be loaded from the relative URL: "/TankstelleService/tankstelle" (HTTP-GET) An existing WasserstoffSystem entity should be loaded from the relative URL: "/VorfallArtService/wasserstoffsystem/{id}" (HTTP-GET) If a new WasserstoffSystem entity has been created, the new entity should be posted to the relative URL: "/VorfallArtService/wasserstoffsystem" (HTTP-POST) If an existing WasserstoffSystem entity has been updated, the modified entity should be sent to the relative URL: "/VorfallArtService/wasserstoffsystem/{id}" (HTTP-PUT) If an existing WasserstoffSystem entity has to be deleted, the following relative URL should be called: "/VorfallArtService/wasserstoffsystem/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum