Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
TurbinenTypApp
Please create a React-JS application for the TurbinenTypModule. The application has to offer the following views for the user interface: 1. KraftwerkTurbineView 2. StaudammView 3. TurbinenTypView 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 KraftwerkTurbineView must contain the following fields: - name: Anzahl type: INT - name: GesamtleistungMw type: DOUBLE - name: TurbinenTyp type: TurbinenTyp - 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 [TurbinenTyp] select control should be loaded from the relative URL: "/TurbinenTypService/turbinentyp" (HTTP-GET) An existing KraftwerkTurbine entity should be loaded from the relative URL: "/TurbinenTypService/kraftwerkturbine/{id}" (HTTP-GET) If a new KraftwerkTurbine entity has been created, the new entity should be posted to the relative URL: "/TurbinenTypService/kraftwerkturbine" (HTTP-POST) If an existing KraftwerkTurbine entity has been updated, the modified entity should be sent to the relative URL: "/TurbinenTypService/kraftwerkturbine/{id}" (HTTP-PUT) If an existing KraftwerkTurbine entity has to be deleted, the following relative URL should be called: "/TurbinenTypService/kraftwerkturbine/{id}" (HTTP-DELETE) 2. The StaudammView must contain the following fields: - name: Dammtyp type: STRING - name: HoeheM type: DOUBLE - name: LaengeM type: DOUBLE - name: Name 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) An existing Staudamm entity should be loaded from the relative URL: "/TurbinenTypService/staudamm/{id}" (HTTP-GET) If a new Staudamm entity has been created, the new entity should be posted to the relative URL: "/TurbinenTypService/staudamm" (HTTP-POST) If an existing Staudamm entity has been updated, the modified entity should be sent to the relative URL: "/TurbinenTypService/staudamm/{id}" (HTTP-PUT) If an existing Staudamm entity has to be deleted, the following relative URL should be called: "/TurbinenTypService/staudamm/{id}" (HTTP-DELETE) 3. The TurbinenTypView must contain the following fields: - name: Beschreibung type: STRING - name: FallhoeheMaxM type: DOUBLE - name: FallhoeheMinM type: DOUBLE - name: Name type: STRING An existing TurbinenTyp entity should be loaded from the relative URL: "/TurbinenTypService/turbinentyp/{id}" (HTTP-GET) If a new TurbinenTyp entity has been created, the new entity should be posted to the relative URL: "/TurbinenTypService/turbinentyp" (HTTP-POST) If an existing TurbinenTyp entity has been updated, the modified entity should be sent to the relative URL: "/TurbinenTypService/turbinentyp/{id}" (HTTP-PUT) If an existing TurbinenTyp entity has to be deleted, the following relative URL should be called: "/TurbinenTypService/turbinentyp/{id}" (HTTP-DELETE) Add a HTML table to the view with the following KraftwerkTurbine columns: - column: Anzahl - column: GesamtleistungMw - column: Wasserkraftwerk - column: TurbinenTyp The table should have the title "KraftwerkTurbines" und the data must be loaded from the server with the following relative URL: "/TurbinenTypService/kraftwerkturbine/turbinentyp/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum