Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
OeffentlicheKampagneApp
Please create a React-JS application for the OeffentlicheKampagneModule. The application has to offer the following views for the user interface: 1. DesignProjektView 2. DesignProjektBehaelterView 3. OeffentlicheKampagneView 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 DesignProjektView must contain the following fields: - name: Beschreibung type: STRING - name: Endjahr type: INT - name: Gemeinde type: Gemeinde - name: IstKunstprojekt type: BOOL - name: IstMarketingkampagne type: BOOL - name: Name type: STRING - name: Startjahr type: INT The data source for the [Gemeinde] select control should be loaded from the relative URL: "/GemeindeService/gemeinde" (HTTP-GET) An existing DesignProjekt entity should be loaded from the relative URL: "/OeffentlicheKampagneService/designprojekt/{id}" (HTTP-GET) If a new DesignProjekt entity has been created, the new entity should be posted to the relative URL: "/OeffentlicheKampagneService/designprojekt" (HTTP-POST) If an existing DesignProjekt entity has been updated, the modified entity should be sent to the relative URL: "/OeffentlicheKampagneService/designprojekt/{id}" (HTTP-PUT) If an existing DesignProjekt entity has to be deleted, the following relative URL should be called: "/OeffentlicheKampagneService/designprojekt/{id}" (HTTP-DELETE) Add a HTML table to the view with the following DesignProjektBehaelter columns: - column: IstPrototyp - column: Abfallbehaelter - column: DesignProjekt The table should have the title "DesignProjektBehaelters" und the data must be loaded from the server with the following relative URL: "/OeffentlicheKampagneService/designprojektbehaelter/designprojekt/{id}" 2. The DesignProjektBehaelterView must contain the following fields: - name: Abfallbehaelter type: Abfallbehaelter - name: DesignProjekt type: DesignProjekt - name: IstPrototyp type: BOOL The data source for the [Abfallbehaelter] select control should be loaded from the relative URL: "/AbfallbehaelterService/abfallbehaelter" (HTTP-GET) The data source for the [DesignProjekt] select control should be loaded from the relative URL: "/OeffentlicheKampagneService/designprojekt" (HTTP-GET) An existing DesignProjektBehaelter entity should be loaded from the relative URL: "/OeffentlicheKampagneService/designprojektbehaelter/{id}" (HTTP-GET) If a new DesignProjektBehaelter entity has been created, the new entity should be posted to the relative URL: "/OeffentlicheKampagneService/designprojektbehaelter" (HTTP-POST) If an existing DesignProjektBehaelter entity has been updated, the modified entity should be sent to the relative URL: "/OeffentlicheKampagneService/designprojektbehaelter/{id}" (HTTP-PUT) If an existing DesignProjektBehaelter entity has to be deleted, the following relative URL should be called: "/OeffentlicheKampagneService/designprojektbehaelter/{id}" (HTTP-DELETE) 3. The OeffentlicheKampagneView must contain the following fields: - name: Beschreibung type: STRING - name: Endjahr type: INT - name: Gemeinde type: Gemeinde - name: Name type: STRING - name: Slogan type: STRING - name: Startjahr type: INT The data source for the [Gemeinde] select control should be loaded from the relative URL: "/GemeindeService/gemeinde" (HTTP-GET) An existing OeffentlicheKampagne entity should be loaded from the relative URL: "/OeffentlicheKampagneService/oeffentlichekampagne/{id}" (HTTP-GET) If a new OeffentlicheKampagne entity has been created, the new entity should be posted to the relative URL: "/OeffentlicheKampagneService/oeffentlichekampagne" (HTTP-POST) If an existing OeffentlicheKampagne entity has been updated, the modified entity should be sent to the relative URL: "/OeffentlicheKampagneService/oeffentlichekampagne/{id}" (HTTP-PUT) If an existing OeffentlicheKampagne entity has to be deleted, the following relative URL should be called: "/OeffentlicheKampagneService/oeffentlichekampagne/{id}" (HTTP-DELETE) Add a HTML table to the view with the following KampagnenBehaelter columns: - column: SloganVariante - column: OeffentlicheKampagne - column: Abfallbehaelter - column: IstGebrandet The table should have the title "KampagnenBehaelters" und the data must be loaded from the server with the following relative URL: "/AbfallbehaelterService/kampagnenbehaelter/oeffentlichekampagne/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum