Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
MaterialApp
Please create a React-JS application for the MaterialModule. The application has to offer the following views for the user interface: 1. MaterialView 2. PppVertragMoebelView 3. StadtmoebelMaterialView 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 MaterialView must contain the following fields: - name: Beschreibung type: STRING - name: IstBeton type: BOOL - name: IstHolz type: BOOL - name: IstMetall type: BOOL - name: IstVerbund type: BOOL - name: Name type: STRING An existing Material entity should be loaded from the relative URL: "/MaterialService/material/{id}" (HTTP-GET) If a new Material entity has been created, the new entity should be posted to the relative URL: "/MaterialService/material" (HTTP-POST) If an existing Material entity has been updated, the modified entity should be sent to the relative URL: "/MaterialService/material/{id}" (HTTP-PUT) If an existing Material entity has to be deleted, the following relative URL should be called: "/MaterialService/material/{id}" (HTTP-DELETE) Add a HTML table to the view with the following StadtmoebelMaterial columns: - column: Stadtmoebel - column: Anteil - column: Material The table should have the title "StadtmoebelMaterials" und the data must be loaded from the server with the following relative URL: "/MaterialService/stadtmoebelmaterial/material/{id}" 2. The PppVertragMoebelView must contain the following fields: - name: PppVertrag type: PppVertrag - name: Rolle type: STRING - name: Stadtmoebel type: Stadtmoebel The data source for the [PppVertrag] select control should be loaded from the relative URL: "/GemeindeService/pppvertrag" (HTTP-GET) The data source for the [Stadtmoebel] select control should be loaded from the relative URL: "/StadtmoebelService/stadtmoebel" (HTTP-GET) An existing PppVertragMoebel entity should be loaded from the relative URL: "/MaterialService/pppvertragmoebel/{id}" (HTTP-GET) If a new PppVertragMoebel entity has been created, the new entity should be posted to the relative URL: "/MaterialService/pppvertragmoebel" (HTTP-POST) If an existing PppVertragMoebel entity has been updated, the modified entity should be sent to the relative URL: "/MaterialService/pppvertragmoebel/{id}" (HTTP-PUT) If an existing PppVertragMoebel entity has to be deleted, the following relative URL should be called: "/MaterialService/pppvertragmoebel/{id}" (HTTP-DELETE) 3. The StadtmoebelMaterialView must contain the following fields: - name: Anteil type: STRING - name: Material type: Material - name: Stadtmoebel type: Stadtmoebel The data source for the [Stadtmoebel] select control should be loaded from the relative URL: "/StadtmoebelService/stadtmoebel" (HTTP-GET) The data source for the [Material] select control should be loaded from the relative URL: "/MaterialService/material" (HTTP-GET) An existing StadtmoebelMaterial entity should be loaded from the relative URL: "/MaterialService/stadtmoebelmaterial/{id}" (HTTP-GET) If a new StadtmoebelMaterial entity has been created, the new entity should be posted to the relative URL: "/MaterialService/stadtmoebelmaterial" (HTTP-POST) If an existing StadtmoebelMaterial entity has been updated, the modified entity should be sent to the relative URL: "/MaterialService/stadtmoebelmaterial/{id}" (HTTP-PUT) If an existing StadtmoebelMaterial entity has to be deleted, the following relative URL should be called: "/MaterialService/stadtmoebelmaterial/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum