Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
BelagsmaterialApp
Please create a React-JS application for the BelagsmaterialModule. The application has to offer the following views for the user interface: 1. BelagsmaterialView 2. StrassenabschnittBelagView 3. UnfallstatistikView 4. VerkehrsartView 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 BelagsmaterialView must contain the following fields: - name: Beschreibung type: STRING - name: IstBefestigt type: BOOL - name: Name type: STRING An existing Belagsmaterial entity should be loaded from the relative URL: "/BelagsmaterialService/belagsmaterial/{id}" (HTTP-GET) If a new Belagsmaterial entity has been created, the new entity should be posted to the relative URL: "/BelagsmaterialService/belagsmaterial" (HTTP-POST) If an existing Belagsmaterial entity has been updated, the modified entity should be sent to the relative URL: "/BelagsmaterialService/belagsmaterial/{id}" (HTTP-PUT) If an existing Belagsmaterial entity has to be deleted, the following relative URL should be called: "/BelagsmaterialService/belagsmaterial/{id}" (HTTP-DELETE) Add a HTML table to the view with the following StrassenabschnittBelag columns: - column: Belagsmaterial - column: LetzteErneuerung - column: Strassenabschnitt - column: DickeCm The table should have the title "StrassenabschnittBelags" und the data must be loaded from the server with the following relative URL: "/BelagsmaterialService/strassenabschnittbelag/belagsmaterial/{id}" 2. The StrassenabschnittBelagView must contain the following fields: - name: Belagsmaterial type: Belagsmaterial - name: DickeCm type: STRING - name: LetzteErneuerung type: DATE - name: Strassenabschnitt type: Strassenabschnitt The data source for the [Belagsmaterial] select control should be loaded from the relative URL: "/BelagsmaterialService/belagsmaterial" (HTTP-GET) The data source for the [Strassenabschnitt] select control should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnitt" (HTTP-GET) An existing StrassenabschnittBelag entity should be loaded from the relative URL: "/BelagsmaterialService/strassenabschnittbelag/{id}" (HTTP-GET) If a new StrassenabschnittBelag entity has been created, the new entity should be posted to the relative URL: "/BelagsmaterialService/strassenabschnittbelag" (HTTP-POST) If an existing StrassenabschnittBelag entity has been updated, the modified entity should be sent to the relative URL: "/BelagsmaterialService/strassenabschnittbelag/{id}" (HTTP-PUT) If an existing StrassenabschnittBelag entity has to be deleted, the following relative URL should be called: "/BelagsmaterialService/strassenabschnittbelag/{id}" (HTTP-DELETE) 3. The UnfallstatistikView must contain the following fields: - name: Jahr type: LONG - name: Strassenabschnitt type: Strassenabschnitt - name: Tote type: LONG - name: UnfaelleGesamt type: LONG - name: Verletzte type: LONG The data source for the [Strassenabschnitt] select control should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnitt" (HTTP-GET) An existing Unfallstatistik entity should be loaded from the relative URL: "/BelagsmaterialService/unfallstatistik/{id}" (HTTP-GET) If a new Unfallstatistik entity has been created, the new entity should be posted to the relative URL: "/BelagsmaterialService/unfallstatistik" (HTTP-POST) If an existing Unfallstatistik entity has been updated, the modified entity should be sent to the relative URL: "/BelagsmaterialService/unfallstatistik/{id}" (HTTP-PUT) If an existing Unfallstatistik entity has to be deleted, the following relative URL should be called: "/BelagsmaterialService/unfallstatistik/{id}" (HTTP-DELETE) 4. The VerkehrsartView must contain the following fields: - name: Code type: STRING - name: Motorisiert type: BOOL - name: Name type: STRING An existing Verkehrsart entity should be loaded from the relative URL: "/BelagsmaterialService/verkehrsart/{id}" (HTTP-GET) If a new Verkehrsart entity has been created, the new entity should be posted to the relative URL: "/BelagsmaterialService/verkehrsart" (HTTP-POST) If an existing Verkehrsart entity has been updated, the modified entity should be sent to the relative URL: "/BelagsmaterialService/verkehrsart/{id}" (HTTP-PUT) If an existing Verkehrsart entity has to be deleted, the following relative URL should be called: "/BelagsmaterialService/verkehrsart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following StrassenabschnittVerkehrsart columns: - column: Strassenabschnitt - column: Exklusiv - column: Verkehrsart The table should have the title "StrassenabschnittVerkehrsarts" und the data must be loaded from the server with the following relative URL: "/StrassenabschnittService/strassenabschnittverkehrsart/verkehrsart/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum