Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
UebergangsartApp
Please create a React-JS application for the UebergangsartModule. The application has to offer the following views for the user interface: 1. BahnuebergangSchrankeView 2. GeschwindigkeitsregelView 3. SchrankenartView 4. UebergangsartView 5. 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 5 views are defined below. 1. The BahnuebergangSchrankeView must contain the following fields: - name: AnzahlBaume type: LONG - name: Bahnuebergang type: Bahnuebergang - name: Schrankenart type: Schrankenart The data source for the [Bahnuebergang] select control should be loaded from the relative URL: "/BahnuebergangService/bahnuebergang" (HTTP-GET) The data source for the [Schrankenart] select control should be loaded from the relative URL: "/UebergangsartService/schrankenart" (HTTP-GET) An existing BahnuebergangSchranke entity should be loaded from the relative URL: "/UebergangsartService/bahnuebergangschranke/{id}" (HTTP-GET) If a new BahnuebergangSchranke entity has been created, the new entity should be posted to the relative URL: "/UebergangsartService/bahnuebergangschranke" (HTTP-POST) If an existing BahnuebergangSchranke entity has been updated, the modified entity should be sent to the relative URL: "/UebergangsartService/bahnuebergangschranke/{id}" (HTTP-PUT) If an existing BahnuebergangSchranke entity has to be deleted, the following relative URL should be called: "/UebergangsartService/bahnuebergangschranke/{id}" (HTTP-DELETE) 2. The GeschwindigkeitsregelView must contain the following fields: - name: Beschreibung type: STRING - name: ErfordertKeinenBahnuebergang type: BOOL - name: ErfordertTechnischeSicherung type: BOOL - name: Land type: Land - name: MaxBahnGeschwindigkeit type: LONG - name: MaxStrassenGeschwindigkeit type: LONG The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Geschwindigkeitsregel entity should be loaded from the relative URL: "/UebergangsartService/geschwindigkeitsregel/{id}" (HTTP-GET) If a new Geschwindigkeitsregel entity has been created, the new entity should be posted to the relative URL: "/UebergangsartService/geschwindigkeitsregel" (HTTP-POST) If an existing Geschwindigkeitsregel entity has been updated, the modified entity should be sent to the relative URL: "/UebergangsartService/geschwindigkeitsregel/{id}" (HTTP-PUT) If an existing Geschwindigkeitsregel entity has to be deleted, the following relative URL should be called: "/UebergangsartService/geschwindigkeitsregel/{id}" (HTTP-DELETE) 3. The SchrankenartView must contain the following fields: - name: Code type: STRING - name: Elektrisch type: BOOL - name: Halbschranke type: BOOL - name: MaxAnzahlBaume type: LONG - name: Mechanisch type: BOOL - name: Name type: STRING - name: Vollschranke type: BOOL An existing Schrankenart entity should be loaded from the relative URL: "/UebergangsartService/schrankenart/{id}" (HTTP-GET) If a new Schrankenart entity has been created, the new entity should be posted to the relative URL: "/UebergangsartService/schrankenart" (HTTP-POST) If an existing Schrankenart entity has been updated, the modified entity should be sent to the relative URL: "/UebergangsartService/schrankenart/{id}" (HTTP-PUT) If an existing Schrankenart entity has to be deleted, the following relative URL should be called: "/UebergangsartService/schrankenart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BahnuebergangSchranke columns: - column: AnzahlBaume - column: Schrankenart - column: Bahnuebergang The table should have the title "BahnuebergangSchrankes" und the data must be loaded from the server with the following relative URL: "/UebergangsartService/bahnuebergangschranke/schrankenart/{id}" 4. The UebergangsartView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING - name: Name type: STRING An existing Uebergangsart entity should be loaded from the relative URL: "/UebergangsartService/uebergangsart/{id}" (HTTP-GET) If a new Uebergangsart entity has been created, the new entity should be posted to the relative URL: "/UebergangsartService/uebergangsart" (HTTP-POST) If an existing Uebergangsart entity has been updated, the modified entity should be sent to the relative URL: "/UebergangsartService/uebergangsart/{id}" (HTTP-PUT) If an existing Uebergangsart entity has to be deleted, the following relative URL should be called: "/UebergangsartService/uebergangsart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Bahnuebergang columns: - column: Strasse - column: Beschreibung - column: AlternativeUeberOderUnterfuehrung - column: MaxBahnGeschwindigkeit - column: Sicherungskategorie - column: Bahnstrecke - column: AnzahlGleise - column: TechnischGesichert - column: Elektrifiziert - column: Uebergangsart - column: MaxStrassenGeschwindigkeit - column: Name - column: Neubau - column: Breitengrad - column: Land - column: Laengengrad The table should have the title "Bahnuebergangs" und the data must be loaded from the server with the following relative URL: "/BahnuebergangService/bahnuebergang/uebergangsart/{id}" 5. The UnfallstatistikView must contain the following fields: - name: AnzahlBahnuebergaenge type: LONG - name: AnzahlTote type: LONG - name: AnzahlUnfaelle type: LONG - name: AnzahlVerletzte type: LONG - name: Jahr type: LONG - name: Land type: Land - name: Quelle type: STRING The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Unfallstatistik entity should be loaded from the relative URL: "/UebergangsartService/unfallstatistik/{id}" (HTTP-GET) If a new Unfallstatistik entity has been created, the new entity should be posted to the relative URL: "/UebergangsartService/unfallstatistik" (HTTP-POST) If an existing Unfallstatistik entity has been updated, the modified entity should be sent to the relative URL: "/UebergangsartService/unfallstatistik/{id}" (HTTP-PUT) If an existing Unfallstatistik entity has to be deleted, the following relative URL should be called: "/UebergangsartService/unfallstatistik/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum