Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
TankstellenTypApp
Please create a React-JS application for the TankstellenTypModule. The application has to offer the following views for the user interface: 1. TankstellenTypView 2. VorfallView 3. VorfallArtView 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 TankstellenTypView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING An existing TankstellenTyp entity should be loaded from the relative URL: "/TankstellenTypService/tankstellentyp/{id}" (HTTP-GET) If a new TankstellenTyp entity has been created, the new entity should be posted to the relative URL: "/TankstellenTypService/tankstellentyp" (HTTP-POST) If an existing TankstellenTyp entity has been updated, the modified entity should be sent to the relative URL: "/TankstellenTypService/tankstellentyp/{id}" (HTTP-PUT) If an existing TankstellenTyp entity has to be deleted, the following relative URL should be called: "/TankstellenTypService/tankstellentyp/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Tankstelle columns: - column: TankstellenTyp - column: HatWaschanlage - column: Marke - column: Name - column: AusserbetriebnahmeDatum - column: HatLadestation - column: HatShop - column: Betreiber - column: InbetriebnahmeDatum - column: Standort The table should have the title "Tankstelles" und the data must be loaded from the server with the following relative URL: "/TankstelleService/tankstelle/tankstellentyp/{id}" 2. The VorfallView must contain the following fields: - name: AnBehoerdeGemeldet type: BOOL - name: Beschreibung type: STRING - name: Schweregrad type: STRING - name: Tankstelle type: Tankstelle - name: VorfallArt type: VorfallArt - name: Zeitpunkt type: DATE The data source for the [Tankstelle] select control should be loaded from the relative URL: "/TankstelleService/tankstelle" (HTTP-GET) The data source for the [VorfallArt] select control should be loaded from the relative URL: "/TankstellenTypService/vorfallart" (HTTP-GET) An existing Vorfall entity should be loaded from the relative URL: "/TankstellenTypService/vorfall/{id}" (HTTP-GET) If a new Vorfall entity has been created, the new entity should be posted to the relative URL: "/TankstellenTypService/vorfall" (HTTP-POST) If an existing Vorfall entity has been updated, the modified entity should be sent to the relative URL: "/TankstellenTypService/vorfall/{id}" (HTTP-PUT) If an existing Vorfall entity has to be deleted, the following relative URL should be called: "/TankstellenTypService/vorfall/{id}" (HTTP-DELETE) 3. The VorfallArtView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING - name: Name type: STRING An existing VorfallArt entity should be loaded from the relative URL: "/TankstellenTypService/vorfallart/{id}" (HTTP-GET) If a new VorfallArt entity has been created, the new entity should be posted to the relative URL: "/TankstellenTypService/vorfallart" (HTTP-POST) If an existing VorfallArt entity has been updated, the modified entity should be sent to the relative URL: "/TankstellenTypService/vorfallart/{id}" (HTTP-PUT) If an existing VorfallArt entity has to be deleted, the following relative URL should be called: "/TankstellenTypService/vorfallart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Vorfall columns: - column: AnBehoerdeGemeldet - column: VorfallArt - column: Schweregrad - column: Beschreibung - column: Tankstelle - column: Zeitpunkt The table should have the title "Vorfalls" und the data must be loaded from the server with the following relative URL: "/TankstellenTypService/vorfall/vorfallart/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum