Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
EnergiequelleApp
Please create a React-JS application for the EnergiequelleModule. The application has to offer the following views for the user interface: 1. EnergiequelleView 2. RegionView 3. VerfahrenEnergiequelleView 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 EnergiequelleView must contain the following fields: - name: Beschreibung type: STRING - name: IstFossil type: BOOL - name: IstRegenerativ type: BOOL - name: Kategorie type: STRING - name: Name type: STRING An existing Energiequelle entity should be loaded from the relative URL: "/EnergiequelleService/energiequelle/{id}" (HTTP-GET) If a new Energiequelle entity has been created, the new entity should be posted to the relative URL: "/EnergiequelleService/energiequelle" (HTTP-POST) If an existing Energiequelle entity has been updated, the modified entity should be sent to the relative URL: "/EnergiequelleService/energiequelle/{id}" (HTTP-PUT) If an existing Energiequelle entity has to be deleted, the following relative URL should be called: "/EnergiequelleService/energiequelle/{id}" (HTTP-DELETE) Add a HTML table to the view with the following VerfahrenEnergiequelle columns: - column: NutzungBeschreibung - column: Energiequelle - column: Verfahren The table should have the title "VerfahrenEnergiequelles" und the data must be loaded from the server with the following relative URL: "/EnergiequelleService/verfahrenenergiequelle/energiequelle/{id}" Add a HTML table to the view with the following AnlageEnergiequelle columns: - column: Entsalzungsanlage - column: EnergieanteilProzent - column: Energiequelle The table should have the title "AnlageEnergiequelles" und the data must be loaded from the server with the following relative URL: "/EntsalzungsanlageService/anlageenergiequelle/energiequelle/{id}" 2. The RegionView must contain the following fields: - name: Beschreibung type: STRING - name: Name type: STRING An existing Region entity should be loaded from the relative URL: "/EnergiequelleService/region/{id}" (HTTP-GET) If a new Region entity has been created, the new entity should be posted to the relative URL: "/EnergiequelleService/region" (HTTP-POST) If an existing Region entity has been updated, the modified entity should be sent to the relative URL: "/EnergiequelleService/region/{id}" (HTTP-PUT) If an existing Region entity has to be deleted, the following relative URL should be called: "/EnergiequelleService/region/{id}" (HTTP-DELETE) 3. The VerfahrenEnergiequelleView must contain the following fields: - name: Energiequelle type: Energiequelle - name: NutzungBeschreibung type: STRING - name: Verfahren type: Verfahren The data source for the [Verfahren] select control should be loaded from the relative URL: "/VerfahrenService/verfahren" (HTTP-GET) The data source for the [Energiequelle] select control should be loaded from the relative URL: "/EnergiequelleService/energiequelle" (HTTP-GET) An existing VerfahrenEnergiequelle entity should be loaded from the relative URL: "/EnergiequelleService/verfahrenenergiequelle/{id}" (HTTP-GET) If a new VerfahrenEnergiequelle entity has been created, the new entity should be posted to the relative URL: "/EnergiequelleService/verfahrenenergiequelle" (HTTP-POST) If an existing VerfahrenEnergiequelle entity has been updated, the modified entity should be sent to the relative URL: "/EnergiequelleService/verfahrenenergiequelle/{id}" (HTTP-PUT) If an existing VerfahrenEnergiequelle entity has to be deleted, the following relative URL should be called: "/EnergiequelleService/verfahrenenergiequelle/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum