Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
RegionApp
Please create a React-JS application for the RegionModule. The application has to offer the following views for the user interface: 1. RegionView 2. StadtView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The RegionView must contain the following fields: - name: Land type: Land - name: Name type: STRING The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Region entity should be loaded from the relative URL: "/RegionService/region/{id}" (HTTP-GET) If a new Region entity has been created, the new entity should be posted to the relative URL: "/RegionService/region" (HTTP-POST) If an existing Region entity has been updated, the modified entity should be sent to the relative URL: "/RegionService/region/{id}" (HTTP-PUT) If an existing Region entity has to be deleted, the following relative URL should be called: "/RegionService/region/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Stadt columns: - column: Region - column: Name - column: Einwohner The table should have the title "Stadts" und the data must be loaded from the server with the following relative URL: "/RegionService/stadt/region/{id}" 2. The StadtView must contain the following fields: - name: Einwohner type: INT - name: Name type: STRING - name: Region type: Region The data source for the [Region] select control should be loaded from the relative URL: "/RegionService/region" (HTTP-GET) An existing Stadt entity should be loaded from the relative URL: "/RegionService/stadt/{id}" (HTTP-GET) If a new Stadt entity has been created, the new entity should be posted to the relative URL: "/RegionService/stadt" (HTTP-POST) If an existing Stadt entity has been updated, the modified entity should be sent to the relative URL: "/RegionService/stadt/{id}" (HTTP-PUT) If an existing Stadt entity has to be deleted, the following relative URL should be called: "/RegionService/stadt/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Adresse columns: - column: Postleitzahl - column: Stadt - column: Strasse The table should have the title "Adresses" und the data must be loaded from the server with the following relative URL: "/AdresseService/adresse/stadt/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum