Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
LandApp
Please create a React-JS application for the LandModule. The application has to offer the following views for the user interface: 1. LandView 2. ProjektView 3. ProjektKraftwerkView 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 LandView must contain the following fields: - name: IsoCode type: STRING - name: Name type: STRING An existing Land entity should be loaded from the relative URL: "/LandService/land/{id}" (HTTP-GET) If a new Land entity has been created, the new entity should be posted to the relative URL: "/LandService/land" (HTTP-POST) If an existing Land entity has been updated, the modified entity should be sent to the relative URL: "/LandService/land/{id}" (HTTP-PUT) If an existing Land entity has to be deleted, the following relative URL should be called: "/LandService/land/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Wasserkraftwerk columns: - column: Betriebsart - column: JahreserzeugungGwh - column: AusserbetriebnahmeJahr - column: Land - column: Fluss - column: IstKavernenkraftwerk - column: NettoFallhoeheMaxM - column: InbetriebnahmeJahr - column: IstPumpspeicher - column: Druckstufe - column: InstallierteLeistungMw - column: NettoFallhoeheMinM - column: Kraftwerkstyp - column: Lastklasse - column: Name - column: Beschreibung - column: Topographieklasse The table should have the title "Wasserkraftwerks" und the data must be loaded from the server with the following relative URL: "/WasserkraftwerkService/wasserkraftwerk/land/{id}" Add a HTML table to the view with the following Projekt columns: - column: Beschreibung - column: Status - column: StartJahr - column: EndJahr - column: Land - column: Name The table should have the title "Projekts" und the data must be loaded from the server with the following relative URL: "/LandService/projekt/land/{id}" 2. The ProjektView must contain the following fields: - name: Beschreibung type: STRING - name: EndJahr type: INT - name: Land type: Land - name: Name type: STRING - name: StartJahr type: INT - name: Status type: STRING The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Projekt entity should be loaded from the relative URL: "/LandService/projekt/{id}" (HTTP-GET) If a new Projekt entity has been created, the new entity should be posted to the relative URL: "/LandService/projekt" (HTTP-POST) If an existing Projekt entity has been updated, the modified entity should be sent to the relative URL: "/LandService/projekt/{id}" (HTTP-PUT) If an existing Projekt entity has to be deleted, the following relative URL should be called: "/LandService/projekt/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ProjektKraftwerk columns: - column: Projekt - column: Rolle - column: Wasserkraftwerk The table should have the title "ProjektKraftwerks" und the data must be loaded from the server with the following relative URL: "/LandService/projektkraftwerk/projekt/{id}" 3. The ProjektKraftwerkView must contain the following fields: - name: Projekt type: Projekt - name: Rolle type: STRING - name: Wasserkraftwerk type: Wasserkraftwerk The data source for the [Wasserkraftwerk] select control should be loaded from the relative URL: "/WasserkraftwerkService/wasserkraftwerk" (HTTP-GET) The data source for the [Projekt] select control should be loaded from the relative URL: "/LandService/projekt" (HTTP-GET) An existing ProjektKraftwerk entity should be loaded from the relative URL: "/LandService/projektkraftwerk/{id}" (HTTP-GET) If a new ProjektKraftwerk entity has been created, the new entity should be posted to the relative URL: "/LandService/projektkraftwerk" (HTTP-POST) If an existing ProjektKraftwerk entity has been updated, the modified entity should be sent to the relative URL: "/LandService/projektkraftwerk/{id}" (HTTP-PUT) If an existing ProjektKraftwerk entity has to be deleted, the following relative URL should be called: "/LandService/projektkraftwerk/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum