Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
VerkehrswegApp
Please create a React-JS application for the VerkehrswegModule. The application has to offer the following views for the user interface: 1. BaumassnahmeView 2. BaustelleVerkehrswegView 3. VerkehrswegView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The BaumassnahmeView must contain the following fields: - name: Baustelle type: Baustelle - name: Beginn type: DATE - name: Beschreibung type: STRING - name: Ende type: DATE - name: IstDauerbaustelle type: BOOL - name: IstNachtarbeit type: BOOL - name: IstRundUmDieUhr type: BOOL - name: IstTageslichtarbeit type: BOOL - name: IstWanderbaustelle type: BOOL - name: MassnahmeTyp type: STRING The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Baumassnahme entity should be loaded from the relative URL: "/VerkehrswegService/baumassnahme/{id}" (HTTP-GET) If a new Baumassnahme entity has been created, the new entity should be posted to the relative URL: "/VerkehrswegService/baumassnahme" (HTTP-POST) If an existing Baumassnahme entity has been updated, the modified entity should be sent to the relative URL: "/VerkehrswegService/baumassnahme/{id}" (HTTP-PUT) If an existing Baumassnahme entity has to be deleted, the following relative URL should be called: "/VerkehrswegService/baumassnahme/{id}" (HTTP-DELETE) 2. The BaustelleVerkehrswegView must contain the following fields: - name: Baustelle type: Baustelle - name: FahrstreifenVorher type: INT - name: FahrstreifenWaehren type: INT - name: IstVollsperrung type: BOOL - name: Laenge type: STRING - name: RichtungBetroffen type: STRING - name: Verkehrsweg type: Verkehrsweg The data source for the [Verkehrsweg] select control should be loaded from the relative URL: "/VerkehrswegService/verkehrsweg" (HTTP-GET) The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing BaustelleVerkehrsweg entity should be loaded from the relative URL: "/VerkehrswegService/baustelleverkehrsweg/{id}" (HTTP-GET) If a new BaustelleVerkehrsweg entity has been created, the new entity should be posted to the relative URL: "/VerkehrswegService/baustelleverkehrsweg" (HTTP-POST) If an existing BaustelleVerkehrsweg entity has been updated, the modified entity should be sent to the relative URL: "/VerkehrswegService/baustelleverkehrsweg/{id}" (HTTP-PUT) If an existing BaustelleVerkehrsweg entity has to be deleted, the following relative URL should be called: "/VerkehrswegService/baustelleverkehrsweg/{id}" (HTTP-DELETE) 3. The VerkehrswegView must contain the following fields: - name: Bezeichnung type: STRING - name: Geschwindigkeitsbegrenzung type: INT - name: StandortBeschreibung type: STRING - name: VerkehrswegTyp type: STRING An existing Verkehrsweg entity should be loaded from the relative URL: "/VerkehrswegService/verkehrsweg/{id}" (HTTP-GET) If a new Verkehrsweg entity has been created, the new entity should be posted to the relative URL: "/VerkehrswegService/verkehrsweg" (HTTP-POST) If an existing Verkehrsweg entity has been updated, the modified entity should be sent to the relative URL: "/VerkehrswegService/verkehrsweg/{id}" (HTTP-PUT) If an existing Verkehrsweg entity has to be deleted, the following relative URL should be called: "/VerkehrswegService/verkehrsweg/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BaustelleVerkehrsweg columns: - column: RichtungBetroffen - column: FahrstreifenVorher - column: Baustelle - column: Verkehrsweg - column: FahrstreifenWaehren - column: Laenge - column: IstVollsperrung The table should have the title "BaustelleVerkehrswegs" und the data must be loaded from the server with the following relative URL: "/VerkehrswegService/baustelleverkehrsweg/verkehrsweg/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum