Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
UnfallView
Please create a React-JS view called "UnfallView" for the fields of the Unfall entity. The UnfallView must contain the following fields: - name: Baustelle type: Baustelle - name: Beschreibung type: STRING - name: BeteiligtenAnzahl type: INT - name: Datum type: DATE - name: Personenschaden type: BOOL - name: PolizeiEinsatz type: BOOL - name: Sachschaden type: BOOL The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Unfall entity should be loaded from the relative URL: "/BauabschnittService/unfall/{id}" (HTTP-GET) If a new Unfall entity has been created, the new entity should be posted to the relative URL: "/BauabschnittService/unfall" (HTTP-POST) If an existing Unfall entity has been updated, the modified entity should be sent to the relative URL: "/BauabschnittService/unfall/{id}" (HTTP-PUT) If an existing Unfall entity has to be deleted, the following relative URL should be called: "/BauabschnittService/unfall/{id}" (HTTP-DELETE) Add a HTML table to the view with the following UnfallBeteiligter columns: - column: Verletzt - column: Akteur - column: Rolle - column: Unfall - column: Getoetet The table should have the title "UnfallBeteiligters" und the data must be loaded from the server with the following relative URL: "/AkteurService/unfallbeteiligter/unfall/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum