Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SpendeApp
Please create a React-JS application for the SpendeModule. The application has to offer the following views for the user interface: 1. ProduktkategorieView 2. SpendeView 3. SpendenpositionView 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 ProduktkategorieView must contain the following fields: - name: KuehlungErforderlichFlag type: BOOL - name: Name type: STRING - name: VerderblichFlag type: BOOL An existing Produktkategorie entity should be loaded from the relative URL: "/SpendeService/produktkategorie/{id}" (HTTP-GET) If a new Produktkategorie entity has been created, the new entity should be posted to the relative URL: "/SpendeService/produktkategorie" (HTTP-POST) If an existing Produktkategorie entity has been updated, the modified entity should be sent to the relative URL: "/SpendeService/produktkategorie/{id}" (HTTP-PUT) If an existing Produktkategorie entity has to be deleted, the following relative URL should be called: "/SpendeService/produktkategorie/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Spendenposition columns: - column: Mindesthaltbarkeit - column: GewichtKg - column: Produktname - column: MengeEinheiten - column: Lager - column: Spende - column: Produktkategorie The table should have the title "Spendenpositions" und the data must be loaded from the server with the following relative URL: "/SpendeService/spendenposition/produktkategorie/{id}" 2. The SpendeView must contain the following fields: - name: GesamtgewichtKg type: STRING - name: HerkunftTyp type: STRING - name: LokaleTafel type: LokaleTafel - name: Notizen type: STRING - name: SpendenDatumZeit type: DATE - name: SpenderFiliale type: SpenderFiliale - name: SpenderOrganisation type: SpenderOrganisation The data source for the [SpenderOrganisation] select control should be loaded from the relative URL: "/AdresseService/spenderorganisation" (HTTP-GET) The data source for the [LokaleTafel] select control should be loaded from the relative URL: "/LokaleTafelService/lokaletafel" (HTTP-GET) The data source for the [SpenderFiliale] select control should be loaded from the relative URL: "/AdresseService/spenderfiliale" (HTTP-GET) An existing Spende entity should be loaded from the relative URL: "/SpendeService/spende/{id}" (HTTP-GET) If a new Spende entity has been created, the new entity should be posted to the relative URL: "/SpendeService/spende" (HTTP-POST) If an existing Spende entity has been updated, the modified entity should be sent to the relative URL: "/SpendeService/spende/{id}" (HTTP-PUT) If an existing Spende entity has to be deleted, the following relative URL should be called: "/SpendeService/spende/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Spendenposition columns: - column: Mindesthaltbarkeit - column: GewichtKg - column: Produktname - column: MengeEinheiten - column: Lager - column: Spende - column: Produktkategorie The table should have the title "Spendenpositions" und the data must be loaded from the server with the following relative URL: "/SpendeService/spendenposition/spende/{id}" 3. The SpendenpositionView must contain the following fields: - name: GewichtKg type: STRING - name: Lager type: Lager - name: MengeEinheiten type: LONG - name: Mindesthaltbarkeit type: DATE - name: Produktkategorie type: Produktkategorie - name: Produktname type: STRING - name: Spende type: Spende The data source for the [Produktkategorie] select control should be loaded from the relative URL: "/SpendeService/produktkategorie" (HTTP-GET) The data source for the [Lager] select control should be loaded from the relative URL: "/LagerService/lager" (HTTP-GET) The data source for the [Spende] select control should be loaded from the relative URL: "/SpendeService/spende" (HTTP-GET) An existing Spendenposition entity should be loaded from the relative URL: "/SpendeService/spendenposition/{id}" (HTTP-GET) If a new Spendenposition entity has been created, the new entity should be posted to the relative URL: "/SpendeService/spendenposition" (HTTP-POST) If an existing Spendenposition entity has been updated, the modified entity should be sent to the relative URL: "/SpendeService/spendenposition/{id}" (HTTP-PUT) If an existing Spendenposition entity has to be deleted, the following relative URL should be called: "/SpendeService/spendenposition/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum