Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
NormApp
Please create a React-JS application for the NormModule. The application has to offer the following views for the user interface: 1. NormView 2. NormAbschnittView 3. NormSchutzmassnahmeView 4. SchutzmassnahmeView 5. StromkreisSchutzmassnahmeView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 views are defined below. 1. The NormView must contain the following fields: - name: Ausgabejahr type: LONG - name: Beschreibung type: STRING - name: Code type: STRING - name: Herausgeber type: STRING - name: Titel type: STRING An existing Norm entity should be loaded from the relative URL: "/NormService/norm/{id}" (HTTP-GET) If a new Norm entity has been created, the new entity should be posted to the relative URL: "/NormService/norm" (HTTP-POST) If an existing Norm entity has been updated, the modified entity should be sent to the relative URL: "/NormService/norm/{id}" (HTTP-PUT) If an existing Norm entity has to be deleted, the following relative URL should be called: "/NormService/norm/{id}" (HTTP-DELETE) Add a HTML table to the view with the following NormAbschnitt columns: - column: Titel - column: Beschreibung - column: AbschnittCode - column: Norm The table should have the title "NormAbschnitts" und the data must be loaded from the server with the following relative URL: "/NormService/normabschnitt/norm/{id}" Add a HTML table to the view with the following NormSchutzmassnahme columns: - column: Beschreibung - column: Schutzmassnahme - column: Norm The table should have the title "NormSchutzmassnahmes" und the data must be loaded from the server with the following relative URL: "/NormService/normschutzmassnahme/norm/{id}" 2. The NormAbschnittView must contain the following fields: - name: AbschnittCode type: STRING - name: Beschreibung type: STRING - name: Norm type: Norm - name: Titel type: STRING The data source for the [Norm] select control should be loaded from the relative URL: "/NormService/norm" (HTTP-GET) An existing NormAbschnitt entity should be loaded from the relative URL: "/NormService/normabschnitt/{id}" (HTTP-GET) If a new NormAbschnitt entity has been created, the new entity should be posted to the relative URL: "/NormService/normabschnitt" (HTTP-POST) If an existing NormAbschnitt entity has been updated, the modified entity should be sent to the relative URL: "/NormService/normabschnitt/{id}" (HTTP-PUT) If an existing NormAbschnitt entity has to be deleted, the following relative URL should be called: "/NormService/normabschnitt/{id}" (HTTP-DELETE) 3. The NormSchutzmassnahmeView must contain the following fields: - name: Beschreibung type: STRING - name: Norm type: Norm - name: Schutzmassnahme type: Schutzmassnahme The data source for the [Norm] select control should be loaded from the relative URL: "/NormService/norm" (HTTP-GET) The data source for the [Schutzmassnahme] select control should be loaded from the relative URL: "/NormService/schutzmassnahme" (HTTP-GET) An existing NormSchutzmassnahme entity should be loaded from the relative URL: "/NormService/normschutzmassnahme/{id}" (HTTP-GET) If a new NormSchutzmassnahme entity has been created, the new entity should be posted to the relative URL: "/NormService/normschutzmassnahme" (HTTP-POST) If an existing NormSchutzmassnahme entity has been updated, the modified entity should be sent to the relative URL: "/NormService/normschutzmassnahme/{id}" (HTTP-PUT) If an existing NormSchutzmassnahme entity has to be deleted, the following relative URL should be called: "/NormService/normschutzmassnahme/{id}" (HTTP-DELETE) 4. The SchutzmassnahmeView must contain the following fields: - name: Beschreibung type: STRING - name: Kategorie type: STRING - name: Name type: STRING An existing Schutzmassnahme entity should be loaded from the relative URL: "/NormService/schutzmassnahme/{id}" (HTTP-GET) If a new Schutzmassnahme entity has been created, the new entity should be posted to the relative URL: "/NormService/schutzmassnahme" (HTTP-POST) If an existing Schutzmassnahme entity has been updated, the modified entity should be sent to the relative URL: "/NormService/schutzmassnahme/{id}" (HTTP-PUT) If an existing Schutzmassnahme entity has to be deleted, the following relative URL should be called: "/NormService/schutzmassnahme/{id}" (HTTP-DELETE) Add a HTML table to the view with the following NormSchutzmassnahme columns: - column: Beschreibung - column: Schutzmassnahme - column: Norm The table should have the title "NormSchutzmassnahmes" und the data must be loaded from the server with the following relative URL: "/NormService/normschutzmassnahme/schutzmassnahme/{id}" Add a HTML table to the view with the following StromkreisSchutzmassnahme columns: - column: Stromkreis - column: Beschreibung - column: Schutzmassnahme The table should have the title "StromkreisSchutzmassnahmes" und the data must be loaded from the server with the following relative URL: "/NormService/stromkreisschutzmassnahme/schutzmassnahme/{id}" 5. The StromkreisSchutzmassnahmeView must contain the following fields: - name: Beschreibung type: STRING - name: Schutzmassnahme type: Schutzmassnahme - name: Stromkreis type: Stromkreis The data source for the [Schutzmassnahme] select control should be loaded from the relative URL: "/NormService/schutzmassnahme" (HTTP-GET) The data source for the [Stromkreis] select control should be loaded from the relative URL: "/StromkreisService/stromkreis" (HTTP-GET) An existing StromkreisSchutzmassnahme entity should be loaded from the relative URL: "/NormService/stromkreisschutzmassnahme/{id}" (HTTP-GET) If a new StromkreisSchutzmassnahme entity has been created, the new entity should be posted to the relative URL: "/NormService/stromkreisschutzmassnahme" (HTTP-POST) If an existing StromkreisSchutzmassnahme entity has been updated, the modified entity should be sent to the relative URL: "/NormService/stromkreisschutzmassnahme/{id}" (HTTP-PUT) If an existing StromkreisSchutzmassnahme entity has to be deleted, the following relative URL should be called: "/NormService/stromkreisschutzmassnahme/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum