Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
GlasProduktApp
Please create a React-JS application for the GlasProduktModule. The application has to offer the following views for the user interface: 1. GlasProduktView 2. GlasProduktFarbeView 3. JahresStatistikView 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 GlasProduktView must contain the following fields: - name: Abfallstrom type: Abfallstrom - name: Beschreibung type: STRING - name: GlasKategorie type: GlasKategorie - name: Name type: STRING The data source for the [GlasKategorie] select control should be loaded from the relative URL: "/GlasKategorieService/glaskategorie" (HTTP-GET) The data source for the [Abfallstrom] select control should be loaded from the relative URL: "/AbfallstromService/abfallstrom" (HTTP-GET) An existing GlasProdukt entity should be loaded from the relative URL: "/GlasProduktService/glasprodukt/{id}" (HTTP-GET) If a new GlasProdukt entity has been created, the new entity should be posted to the relative URL: "/GlasProduktService/glasprodukt" (HTTP-POST) If an existing GlasProdukt entity has been updated, the modified entity should be sent to the relative URL: "/GlasProduktService/glasprodukt/{id}" (HTTP-PUT) If an existing GlasProdukt entity has to be deleted, the following relative URL should be called: "/GlasProduktService/glasprodukt/{id}" (HTTP-DELETE) Add a HTML table to the view with the following GlasProduktFarbe columns: - column: IstHauptfarbe - column: GlasProdukt - column: GlasFarbe The table should have the title "GlasProduktFarbes" und the data must be loaded from the server with the following relative URL: "/GlasProduktService/glasproduktfarbe/glasprodukt/{id}" 2. The GlasProduktFarbeView must contain the following fields: - name: GlasFarbe type: GlasFarbe - name: GlasProdukt type: GlasProdukt - name: IstHauptfarbe type: BOOL The data source for the [GlasProdukt] select control should be loaded from the relative URL: "/GlasProduktService/glasprodukt" (HTTP-GET) The data source for the [GlasFarbe] select control should be loaded from the relative URL: "/GlasFarbeService/glasfarbe" (HTTP-GET) An existing GlasProduktFarbe entity should be loaded from the relative URL: "/GlasProduktService/glasproduktfarbe/{id}" (HTTP-GET) If a new GlasProduktFarbe entity has been created, the new entity should be posted to the relative URL: "/GlasProduktService/glasproduktfarbe" (HTTP-POST) If an existing GlasProduktFarbe entity has been updated, the modified entity should be sent to the relative URL: "/GlasProduktService/glasproduktfarbe/{id}" (HTTP-PUT) If an existing GlasProduktFarbe entity has to be deleted, the following relative URL should be called: "/GlasProduktService/glasproduktfarbe/{id}" (HTTP-DELETE) 3. The JahresStatistikView must contain the following fields: - name: GesammeltTonnen type: STRING - name: GlasKategorie type: GlasKategorie - name: Jahr type: INT - name: Land type: Land - name: MarktMengeTonnen type: STRING - name: Notizen type: STRING - name: PostConsumerAnteilProzent type: STRING - name: RecyceltTonnen type: STRING - name: RecyclingQuoteProzent type: STRING - name: Region type: Region - name: SammelQuoteProzent type: STRING The data source for the [GlasKategorie] select control should be loaded from the relative URL: "/GlasKategorieService/glaskategorie" (HTTP-GET) The data source for the [Region] select control should be loaded from the relative URL: "/LandService/region" (HTTP-GET) The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing JahresStatistik entity should be loaded from the relative URL: "/GlasProduktService/jahresstatistik/{id}" (HTTP-GET) If a new JahresStatistik entity has been created, the new entity should be posted to the relative URL: "/GlasProduktService/jahresstatistik" (HTTP-POST) If an existing JahresStatistik entity has been updated, the modified entity should be sent to the relative URL: "/GlasProduktService/jahresstatistik/{id}" (HTTP-PUT) If an existing JahresStatistik entity has to be deleted, the following relative URL should be called: "/GlasProduktService/jahresstatistik/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum