Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
AnodenTypApp
Please create a React-JS application for the AnodenTypModule. The application has to offer the following views for the user interface: 1. AnodenTypView 2. EnergieQuelleView 3. GeraetEnergieQuelleView 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 AnodenTypView must contain the following fields: - name: Name type: STRING An existing AnodenTyp entity should be loaded from the relative URL: "/AnodenTypService/anodentyp/{id}" (HTTP-GET) If a new AnodenTyp entity has been created, the new entity should be posted to the relative URL: "/AnodenTypService/anodentyp" (HTTP-POST) If an existing AnodenTyp entity has been updated, the modified entity should be sent to the relative URL: "/AnodenTypService/anodentyp/{id}" (HTTP-PUT) If an existing AnodenTyp entity has to be deleted, the following relative URL should be called: "/AnodenTypService/anodentyp/{id}" (HTTP-DELETE) Add a HTML table to the view with the following GeraetAnode columns: - column: AnodenTyp - column: SpeicherGeraet - column: IstErforderlich The table should have the title "GeraetAnodes" und the data must be loaded from the server with the following relative URL: "/SpeicherGeraetService/geraetanode/anodentyp/{id}" 2. 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: "/AnodenTypService/energiequelle/{id}" (HTTP-GET) If a new EnergieQuelle entity has been created, the new entity should be posted to the relative URL: "/AnodenTypService/energiequelle" (HTTP-POST) If an existing EnergieQuelle entity has been updated, the modified entity should be sent to the relative URL: "/AnodenTypService/energiequelle/{id}" (HTTP-PUT) If an existing EnergieQuelle entity has to be deleted, the following relative URL should be called: "/AnodenTypService/energiequelle/{id}" (HTTP-DELETE) Add a HTML table to the view with the following GeraetEnergieQuelle columns: - column: IstPrimaer - column: SpeicherGeraet - column: EnergieQuelle The table should have the title "GeraetEnergieQuelles" und the data must be loaded from the server with the following relative URL: "/AnodenTypService/geraetenergiequelle/energiequelle/{id}" 3. 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: "/AnodenTypService/energiequelle" (HTTP-GET) An existing GeraetEnergieQuelle entity should be loaded from the relative URL: "/AnodenTypService/geraetenergiequelle/{id}" (HTTP-GET) If a new GeraetEnergieQuelle entity has been created, the new entity should be posted to the relative URL: "/AnodenTypService/geraetenergiequelle" (HTTP-POST) If an existing GeraetEnergieQuelle entity has been updated, the modified entity should be sent to the relative URL: "/AnodenTypService/geraetenergiequelle/{id}" (HTTP-PUT) If an existing GeraetEnergieQuelle entity has to be deleted, the following relative URL should be called: "/AnodenTypService/geraetenergiequelle/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum