Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
GlasKategorieApp
Please create a React-JS application for the GlasKategorieModule. The application has to offer the following views for the user interface: 1. EnergieDatenView 2. GlasKategorieView 3. JahresStatistikView 4. RegelungsZielView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The EnergieDatenView must contain the following fields: - name: EnergieProTonneGJ type: STRING - name: EnergieProTonneKWh type: STRING - name: GlasKategorie type: GlasKategorie - name: OfenTyp type: STRING - name: ProzessTyp type: STRING - name: Quelle type: STRING - name: RecyclingAnlage type: RecyclingAnlage - name: ScherbenAnteilProzent 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 [RecyclingAnlage] select control should be loaded from the relative URL: "/LandService/recyclinganlage" (HTTP-GET) An existing EnergieDaten entity should be loaded from the relative URL: "/GlasKategorieService/energiedaten/{id}" (HTTP-GET) If a new EnergieDaten entity has been created, the new entity should be posted to the relative URL: "/GlasKategorieService/energiedaten" (HTTP-POST) If an existing EnergieDaten entity has been updated, the modified entity should be sent to the relative URL: "/GlasKategorieService/energiedaten/{id}" (HTTP-PUT) If an existing EnergieDaten entity has to be deleted, the following relative URL should be called: "/GlasKategorieService/energiedaten/{id}" (HTTP-DELETE) 2. The GlasKategorieView must contain the following fields: - name: Beschreibung type: STRING - name: Name type: STRING An existing GlasKategorie entity should be loaded from the relative URL: "/GlasKategorieService/glaskategorie/{id}" (HTTP-GET) If a new GlasKategorie entity has been created, the new entity should be posted to the relative URL: "/GlasKategorieService/glaskategorie" (HTTP-POST) If an existing GlasKategorie entity has been updated, the modified entity should be sent to the relative URL: "/GlasKategorieService/glaskategorie/{id}" (HTTP-PUT) If an existing GlasKategorie entity has to be deleted, the following relative URL should be called: "/GlasKategorieService/glaskategorie/{id}" (HTTP-DELETE) Add a HTML table to the view with the following GlasProdukt columns: - column: Name - column: Beschreibung - column: Abfallstrom - column: GlasKategorie The table should have the title "GlasProdukts" und the data must be loaded from the server with the following relative URL: "/GlasFarbeService/glasprodukt/glaskategorie/{id}" Add a HTML table to the view with the following JahresStatistik columns: - column: RecyclingQuoteProzent - column: Land - column: MarktMengeTonnen - column: GlasKategorie - column: Jahr - column: Region - column: Notizen - column: PostConsumerAnteilProzent - column: RecyceltTonnen - column: SammelQuoteProzent - column: GesammeltTonnen The table should have the title "JahresStatistiks" und the data must be loaded from the server with the following relative URL: "/GlasKategorieService/jahresstatistik/glaskategorie/{id}" Add a HTML table to the view with the following RegelungsZiel columns: - column: ZielTyp - column: Abfallstrom - column: ZielJahr - column: Notizen - column: GlasKategorie - column: ZielProzent - column: Regelung The table should have the title "RegelungsZiels" und the data must be loaded from the server with the following relative URL: "/GlasKategorieService/regelungsziel/glaskategorie/{id}" Add a HTML table to the view with the following EnergieDaten columns: - column: OfenTyp - column: EnergieProTonneKWh - column: EnergieProTonneGJ - column: Quelle - column: RecyclingAnlage - column: GlasKategorie - column: ProzessTyp - column: ScherbenAnteilProzent The table should have the title "EnergieDatens" und the data must be loaded from the server with the following relative URL: "/GlasKategorieService/energiedaten/glaskategorie/{id}" 3. The JahresStatistikView must contain the following fields: - name: GesammeltTonnen type: STRING - name: GlasKategorie type: GlasKategorie - name: Jahr type: LONG - 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: "/RegionService/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: "/GlasKategorieService/jahresstatistik/{id}" (HTTP-GET) If a new JahresStatistik entity has been created, the new entity should be posted to the relative URL: "/GlasKategorieService/jahresstatistik" (HTTP-POST) If an existing JahresStatistik entity has been updated, the modified entity should be sent to the relative URL: "/GlasKategorieService/jahresstatistik/{id}" (HTTP-PUT) If an existing JahresStatistik entity has to be deleted, the following relative URL should be called: "/GlasKategorieService/jahresstatistik/{id}" (HTTP-DELETE) 4. The RegelungsZielView must contain the following fields: - name: Abfallstrom type: Abfallstrom - name: GlasKategorie type: GlasKategorie - name: Notizen type: STRING - name: Regelung type: Regelung - name: ZielJahr type: LONG - name: ZielProzent type: STRING - name: ZielTyp 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 [Regelung] select control should be loaded from the relative URL: "/RegionService/regelung" (HTTP-GET) The data source for the [Abfallstrom] select control should be loaded from the relative URL: "/AbfallstromService/abfallstrom" (HTTP-GET) An existing RegelungsZiel entity should be loaded from the relative URL: "/GlasKategorieService/regelungsziel/{id}" (HTTP-GET) If a new RegelungsZiel entity has been created, the new entity should be posted to the relative URL: "/GlasKategorieService/regelungsziel" (HTTP-POST) If an existing RegelungsZiel entity has been updated, the modified entity should be sent to the relative URL: "/GlasKategorieService/regelungsziel/{id}" (HTTP-PUT) If an existing RegelungsZiel entity has to be deleted, the following relative URL should be called: "/GlasKategorieService/regelungsziel/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum