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. GeraetEnergieQuelleView 3. NormView 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: IstErneuerbar type: BOOL - name: IstExtern type: BOOL - 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 GeraetEnergieQuelle columns: - column: IstPrimaer - column: EnergieQuelle - column: SpeicherGeraet The table should have the title "GeraetEnergieQuelles" und the data must be loaded from the server with the following relative URL: "/EnergieQuelleService/geraetenergiequelle/energiequelle/{id}" 2. The GeraetEnergieQuelleView must contain the following fields: - name: EnergieQuelle type: EnergieQuelle - name: IstPrimaer type: BOOL - name: SpeicherGeraet type: SpeicherGeraet The data source for the [SpeicherGeraet] select control should be loaded from the relative URL: "/SpeicherGeraetService/speichergeraet" (HTTP-GET) The data source for the [EnergieQuelle] select control should be loaded from the relative URL: "/EnergieQuelleService/energiequelle" (HTTP-GET) An existing GeraetEnergieQuelle entity should be loaded from the relative URL: "/EnergieQuelleService/geraetenergiequelle/{id}" (HTTP-GET) If a new GeraetEnergieQuelle entity has been created, the new entity should be posted to the relative URL: "/EnergieQuelleService/geraetenergiequelle" (HTTP-POST) If an existing GeraetEnergieQuelle entity has been updated, the modified entity should be sent to the relative URL: "/EnergieQuelleService/geraetenergiequelle/{id}" (HTTP-PUT) If an existing GeraetEnergieQuelle entity has to be deleted, the following relative URL should be called: "/EnergieQuelleService/geraetenergiequelle/{id}" (HTTP-DELETE) 3. The NormView must contain the following fields: - name: AnwendungsBereich type: STRING - name: Code type: STRING - name: Titel type: STRING An existing Norm entity should be loaded from the relative URL: "/EnergieQuelleService/norm/{id}" (HTTP-GET) If a new Norm entity has been created, the new entity should be posted to the relative URL: "/EnergieQuelleService/norm" (HTTP-POST) If an existing Norm entity has been updated, the modified entity should be sent to the relative URL: "/EnergieQuelleService/norm/{id}" (HTTP-PUT) If an existing Norm entity has to be deleted, the following relative URL should be called: "/EnergieQuelleService/norm/{id}" (HTTP-DELETE) Add a HTML table to the view with the following GeraetNorm columns: - column: Norm - column: SpeicherGeraet The table should have the title "GeraetNorms" und the data must be loaded from the server with the following relative URL: "/SpeicherGeraetService/geraetnorm/norm/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum