Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
KundeApp
Please create a React-JS application for the KundeModule. The application has to offer the following views for the user interface: 1. HistorischesEreignisView 2. KundeView 3. KundenkarteView 4. KundenrabattprogrammView 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 HistorischesEreignisView must contain the following fields: - name: Beschreibung type: STRING - name: Datum type: DATE - name: Quelle type: STRING - name: Supermarkt type: Supermarkt The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) An existing HistorischesEreignis entity should be loaded from the relative URL: "/KundeService/historischesereignis/{id}" (HTTP-GET) If a new HistorischesEreignis entity has been created, the new entity should be posted to the relative URL: "/KundeService/historischesereignis" (HTTP-POST) If an existing HistorischesEreignis entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/historischesereignis/{id}" (HTTP-PUT) If an existing HistorischesEreignis entity has to be deleted, the following relative URL should be called: "/KundeService/historischesereignis/{id}" (HTTP-DELETE) 2. The KundeView must contain the following fields: - name: Geburtsdatum type: DATE - name: HatKundenkarte type: BOOL - name: Kundenart type: STRING - name: Land type: Land - name: Name type: STRING - name: Stadt type: Stadt The data source for the [Stadt] select control should be loaded from the relative URL: "/LandService/stadt" (HTTP-GET) The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Kunde entity should be loaded from the relative URL: "/KundeService/kunde/{id}" (HTTP-GET) If a new Kunde entity has been created, the new entity should be posted to the relative URL: "/KundeService/kunde" (HTTP-POST) If an existing Kunde entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/kunde/{id}" (HTTP-PUT) If an existing Kunde entity has to be deleted, the following relative URL should be called: "/KundeService/kunde/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Kundenkarte columns: - column: Kartennummer - column: Ablaufdatum - column: Kunde - column: Ausgabedatum - column: RabattProgramm - column: Supermarkt The table should have the title "Kundenkartes" und the data must be loaded from the server with the following relative URL: "/KundeService/kundenkarte/kunde/{id}" Add a HTML table to the view with the following Mitgliedschaft columns: - column: Konsumgenossenschaft - column: Kunde - column: Beitrittsdatum - column: Geldeinlage The table should have the title "Mitgliedschafts" und the data must be loaded from the server with the following relative URL: "/KonsumgenossenschaftService/mitgliedschaft/kunde/{id}" 3. The KundenkarteView must contain the following fields: - name: Ablaufdatum type: DATE - name: Ausgabedatum type: DATE - name: Kartennummer type: STRING - name: Kunde type: Kunde - name: RabattProgramm type: STRING - name: Supermarkt type: Supermarkt The data source for the [Kunde] select control should be loaded from the relative URL: "/KundeService/kunde" (HTTP-GET) The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) An existing Kundenkarte entity should be loaded from the relative URL: "/KundeService/kundenkarte/{id}" (HTTP-GET) If a new Kundenkarte entity has been created, the new entity should be posted to the relative URL: "/KundeService/kundenkarte" (HTTP-POST) If an existing Kundenkarte entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/kundenkarte/{id}" (HTTP-PUT) If an existing Kundenkarte entity has to be deleted, the following relative URL should be called: "/KundeService/kundenkarte/{id}" (HTTP-DELETE) 4. The KundenrabattprogrammView must contain the following fields: - name: Beschreibung type: STRING - name: Bezeichnung type: STRING - name: NurMitKundenkarte type: BOOL - name: RabattProzent type: STRING - name: Supermarkt type: Supermarkt The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) An existing Kundenrabattprogramm entity should be loaded from the relative URL: "/KundeService/kundenrabattprogramm/{id}" (HTTP-GET) If a new Kundenrabattprogramm entity has been created, the new entity should be posted to the relative URL: "/KundeService/kundenrabattprogramm" (HTTP-POST) If an existing Kundenrabattprogramm entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/kundenrabattprogramm/{id}" (HTTP-PUT) If an existing Kundenrabattprogramm entity has to be deleted, the following relative URL should be called: "/KundeService/kundenrabattprogramm/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum