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. TankstelleUmweltMassnahmeView 3. UmweltMassnahmeView 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: AusserbetriebnahmeDatum - column: InbetriebnahmeDatum - column: Marke - column: Name - column: HatShop - column: HatLadestation - column: TankstellenTyp - column: Standort - column: HatWaschanlage - column: Betreiber 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 TankstelleUmweltMassnahmeView must contain the following fields: - name: ImplementierungsDatum type: DATE - name: Notizen type: STRING - name: Tankstelle type: Tankstelle - name: UmweltMassnahme type: UmweltMassnahme The data source for the [Tankstelle] select control should be loaded from the relative URL: "/TankstelleService/tankstelle" (HTTP-GET) The data source for the [UmweltMassnahme] select control should be loaded from the relative URL: "/TankstellenTypService/umweltmassnahme" (HTTP-GET) An existing TankstelleUmweltMassnahme entity should be loaded from the relative URL: "/TankstellenTypService/tankstelleumweltmassnahme/{id}" (HTTP-GET) If a new TankstelleUmweltMassnahme entity has been created, the new entity should be posted to the relative URL: "/TankstellenTypService/tankstelleumweltmassnahme" (HTTP-POST) If an existing TankstelleUmweltMassnahme entity has been updated, the modified entity should be sent to the relative URL: "/TankstellenTypService/tankstelleumweltmassnahme/{id}" (HTTP-PUT) If an existing TankstelleUmweltMassnahme entity has to be deleted, the following relative URL should be called: "/TankstellenTypService/tankstelleumweltmassnahme/{id}" (HTTP-DELETE) 3. The UmweltMassnahmeView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING - name: Name type: STRING An existing UmweltMassnahme entity should be loaded from the relative URL: "/TankstellenTypService/umweltmassnahme/{id}" (HTTP-GET) If a new UmweltMassnahme entity has been created, the new entity should be posted to the relative URL: "/TankstellenTypService/umweltmassnahme" (HTTP-POST) If an existing UmweltMassnahme entity has been updated, the modified entity should be sent to the relative URL: "/TankstellenTypService/umweltmassnahme/{id}" (HTTP-PUT) If an existing UmweltMassnahme entity has to be deleted, the following relative URL should be called: "/TankstellenTypService/umweltmassnahme/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TankstelleUmweltMassnahme columns: - column: Tankstelle - column: UmweltMassnahme - column: Notizen - column: ImplementierungsDatum The table should have the title "TankstelleUmweltMassnahmes" und the data must be loaded from the server with the following relative URL: "/TankstellenTypService/tankstelleumweltmassnahme/umweltmassnahme/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum