Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
HistorischeStrasseApp
Please create a React-JS application for the HistorischeStrasseModule. The application has to offer the following views for the user interface: 1. HistorischeStrasseView 2. HistorischeStrassenstreckeView 3. QuerschnittselementtypView 4. UnfallstatistikView 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 HistorischeStrasseView must contain the following fields: - name: Beschreibung type: STRING - name: EndeJahr type: LONG - name: Kultur type: STRING - name: Militaerisch type: BOOL - name: Name type: STRING - name: StartJahr type: LONG An existing HistorischeStrasse entity should be loaded from the relative URL: "/HistorischeStrasseService/historischestrasse/{id}" (HTTP-GET) If a new HistorischeStrasse entity has been created, the new entity should be posted to the relative URL: "/HistorischeStrasseService/historischestrasse" (HTTP-POST) If an existing HistorischeStrasse entity has been updated, the modified entity should be sent to the relative URL: "/HistorischeStrasseService/historischestrasse/{id}" (HTTP-PUT) If an existing HistorischeStrasse entity has to be deleted, the following relative URL should be called: "/HistorischeStrasseService/historischestrasse/{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/historischestrasse/{id}" 2. The HistorischeStrassenstreckeView must contain the following fields: - name: HistorischeStrasse type: HistorischeStrasse - name: Notizen type: STRING - name: Strassenabschnitt type: Strassenabschnitt The data source for the [HistorischeStrasse] select control should be loaded from the relative URL: "/HistorischeStrasseService/historischestrasse" (HTTP-GET) The data source for the [Strassenabschnitt] select control should be loaded from the relative URL: "/StrassenabschnittService/strassenabschnitt" (HTTP-GET) An existing HistorischeStrassenstrecke entity should be loaded from the relative URL: "/HistorischeStrasseService/historischestrassenstrecke/{id}" (HTTP-GET) If a new HistorischeStrassenstrecke entity has been created, the new entity should be posted to the relative URL: "/HistorischeStrasseService/historischestrassenstrecke" (HTTP-POST) If an existing HistorischeStrassenstrecke entity has been updated, the modified entity should be sent to the relative URL: "/HistorischeStrasseService/historischestrassenstrecke/{id}" (HTTP-PUT) If an existing HistorischeStrassenstrecke entity has to be deleted, the following relative URL should be called: "/HistorischeStrasseService/historischestrassenstrecke/{id}" (HTTP-DELETE) 3. The QuerschnittselementtypView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING - name: Name type: STRING An existing Querschnittselementtyp entity should be loaded from the relative URL: "/HistorischeStrasseService/querschnittselementtyp/{id}" (HTTP-GET) If a new Querschnittselementtyp entity has been created, the new entity should be posted to the relative URL: "/HistorischeStrasseService/querschnittselementtyp" (HTTP-POST) If an existing Querschnittselementtyp entity has been updated, the modified entity should be sent to the relative URL: "/HistorischeStrasseService/querschnittselementtyp/{id}" (HTTP-PUT) If an existing Querschnittselementtyp entity has to be deleted, the following relative URL should be called: "/HistorischeStrasseService/querschnittselementtyp/{id}" (HTTP-DELETE) 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/querschnittselementtyp/{id}" 4. 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: "/HistorischeStrasseService/unfallstatistik/{id}" (HTTP-GET) If a new Unfallstatistik entity has been created, the new entity should be posted to the relative URL: "/HistorischeStrasseService/unfallstatistik" (HTTP-POST) If an existing Unfallstatistik entity has been updated, the modified entity should be sent to the relative URL: "/HistorischeStrasseService/unfallstatistik/{id}" (HTTP-PUT) If an existing Unfallstatistik entity has to be deleted, the following relative URL should be called: "/HistorischeStrasseService/unfallstatistik/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum