Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
StrassenabschnittApp
Please create a React-JS application for the StrassenabschnittModule. The application has to offer the following views for the user interface: 1. StrassenabschnittView 2. StrassenabschnittQuerschnittselementView 3. StrassenabschnittVerkehrsartView 4. StrassenkategorieView 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 StrassenabschnittView must contain the following fields: - name: EndeKm type: STRING - name: Gelaendetyp type: STRING - name: HatBruecke type: BOOL - name: HatTunnel type: BOOL - name: KapazitaetFahrzeugeProTag type: LONG - name: StartKm type: STRING - name: Strasse type: Strasse The data source for the [Strasse] select control should be loaded from the relative URL: "/StrasseService/strasse" (HTTP-GET) An existing Strassenabschnitt entity should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnitt/{id}" (HTTP-GET) If a new Strassenabschnitt entity has been created, the new entity should be posted to the relative URL: "/StrassenabschnittService/strassenabschnitt" (HTTP-POST) If an existing Strassenabschnitt entity has been updated, the modified entity should be sent to the relative URL: "/StrassenabschnittService/strassenabschnitt/{id}" (HTTP-PUT) If an existing Strassenabschnitt entity has to be deleted, the following relative URL should be called: "/StrassenabschnittService/strassenabschnitt/{id}" (HTTP-DELETE) Add a HTML table to the view with the following HistorischeStrassenstrecke columns: - column: Notizen - column: Strassenabschnitt - column: HistorischeStrasse The table should have the title "HistorischeStrassenstreckes" und the data must be loaded from the server with the following relative URL: "/HistorischeStrasseService/historischestrassenstrecke/strassenabschnitt/{id}" 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/strassenabschnitt/{id}" Add a HTML table to the view with the following StrassenabschnittQuerschnittselement columns: - column: Richtung - column: IstGetrennt - column: BreiteMeter - column: Strassenabschnitt - column: Querschnittselementtyp The table should have the title "StrassenabschnittQuerschnittselements" und the data must be loaded from the server with the following relative URL: "/StrassenabschnittService/strassenabschnittquerschnittselement/strassenabschnitt/{id}" Add a HTML table to the view with the following Unfallstatistik columns: - column: UnfaelleGesamt - column: Verletzte - column: Strassenabschnitt - column: Tote - column: Jahr The table should have the title "Unfallstatistiks" und the data must be loaded from the server with the following relative URL: "/BelagsmaterialService/unfallstatistik/strassenabschnitt/{id}" Add a HTML table to the view with the following Umweltauswirkung columns: - column: LaermDb - column: Wildtierquerung - column: Jahr - column: Zerschneidungsindex - column: Strassenabschnitt The table should have the title "Umweltauswirkungs" und the data must be loaded from the server with the following relative URL: "/HistorischeStrasseService/umweltauswirkung/strassenabschnitt/{id}" 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/strassenabschnitt/{id}" 2. The StrassenabschnittQuerschnittselementView must contain the following fields: - name: BreiteMeter type: STRING - name: IstGetrennt type: BOOL - name: Querschnittselementtyp type: Querschnittselementtyp - name: Richtung type: STRING - name: Strassenabschnitt type: Strassenabschnitt The data source for the [Querschnittselementtyp] select control should be loaded from the relative URL: "/StrasseService/querschnittselementtyp" (HTTP-GET) The data source for the [Strassenabschnitt] select control should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnitt" (HTTP-GET) An existing StrassenabschnittQuerschnittselement entity should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnittquerschnittselement/{id}" (HTTP-GET) If a new StrassenabschnittQuerschnittselement entity has been created, the new entity should be posted to the relative URL: "/StrassenabschnittService/strassenabschnittquerschnittselement" (HTTP-POST) If an existing StrassenabschnittQuerschnittselement entity has been updated, the modified entity should be sent to the relative URL: "/StrassenabschnittService/strassenabschnittquerschnittselement/{id}" (HTTP-PUT) If an existing StrassenabschnittQuerschnittselement entity has to be deleted, the following relative URL should be called: "/StrassenabschnittService/strassenabschnittquerschnittselement/{id}" (HTTP-DELETE) 3. The StrassenabschnittVerkehrsartView must contain the following fields: - name: Exklusiv type: BOOL - name: Strassenabschnitt type: Strassenabschnitt - name: Verkehrsart type: Verkehrsart The data source for the [Verkehrsart] select control should be loaded from the relative URL: "/BelagsmaterialService/verkehrsart" (HTTP-GET) The data source for the [Strassenabschnitt] select control should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnitt" (HTTP-GET) An existing StrassenabschnittVerkehrsart entity should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnittverkehrsart/{id}" (HTTP-GET) If a new StrassenabschnittVerkehrsart entity has been created, the new entity should be posted to the relative URL: "/StrassenabschnittService/strassenabschnittverkehrsart" (HTTP-POST) If an existing StrassenabschnittVerkehrsart entity has been updated, the modified entity should be sent to the relative URL: "/StrassenabschnittService/strassenabschnittverkehrsart/{id}" (HTTP-PUT) If an existing StrassenabschnittVerkehrsart entity has to be deleted, the following relative URL should be called: "/StrassenabschnittService/strassenabschnittverkehrsart/{id}" (HTTP-DELETE) 4. The StrassenkategorieView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING - name: IstInnerorts type: BOOL - name: Name type: STRING - name: NurMotorisiert type: BOOL An existing Strassenkategorie entity should be loaded from the relative URL: "/StrassenabschnittService/strassenkategorie/{id}" (HTTP-GET) If a new Strassenkategorie entity has been created, the new entity should be posted to the relative URL: "/StrassenabschnittService/strassenkategorie" (HTTP-POST) If an existing Strassenkategorie entity has been updated, the modified entity should be sent to the relative URL: "/StrassenabschnittService/strassenkategorie/{id}" (HTTP-PUT) If an existing Strassenkategorie entity has to be deleted, the following relative URL should be called: "/StrassenabschnittService/strassenkategorie/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Strasse columns: - column: Strassennetz - column: Strassenkategorie - column: LaengeKm - column: FahrstreifenProRichtung - column: HoechstgeschwindigkeitKmh - column: Schliessungsdatum - column: IstEinbahn - column: IstInnerorts - column: Name - column: IstMaut - column: Eroeffnungsdatum The table should have the title "Strasses" und the data must be loaded from the server with the following relative URL: "/StrasseService/strasse/strassenkategorie/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum