Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
AngebotApp
Please create a React-JS application for the AngebotModule. The application has to offer the following views for the user interface: 1. AngebotView 2. AngebotUnterkunftView 3. VerfuegbarkeitView 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 AngebotView must contain the following fields: - name: Aktiv type: BOOL - name: Beschreibung type: STRING - name: EndDatum type: DATE - name: Erstellzeitpunkt type: DATE - name: RabattBetrag type: STRING - name: RabattProzent type: STRING - name: StartDatum type: DATE - name: Titel type: STRING - name: Waehrung type: STRING An existing Angebot entity should be loaded from the relative URL: "/AngebotService/angebot/{id}" (HTTP-GET) If a new Angebot entity has been created, the new entity should be posted to the relative URL: "/AngebotService/angebot" (HTTP-POST) If an existing Angebot entity has been updated, the modified entity should be sent to the relative URL: "/AngebotService/angebot/{id}" (HTTP-PUT) If an existing Angebot entity has to be deleted, the following relative URL should be called: "/AngebotService/angebot/{id}" (HTTP-DELETE) Add a HTML table to the view with the following AngebotUnterkunft columns: - column: Angebot - column: Erstellzeitpunkt - column: Unterkunft The table should have the title "AngebotUnterkunfts" und the data must be loaded from the server with the following relative URL: "/AngebotService/angebotunterkunft/angebot/{id}" 2. The AngebotUnterkunftView must contain the following fields: - name: Angebot type: Angebot - name: Erstellzeitpunkt type: DATE - name: Unterkunft type: Unterkunft The data source for the [Unterkunft] select control should be loaded from the relative URL: "/UnterkunftService/unterkunft" (HTTP-GET) The data source for the [Angebot] select control should be loaded from the relative URL: "/AngebotService/angebot" (HTTP-GET) An existing AngebotUnterkunft entity should be loaded from the relative URL: "/AngebotService/angebotunterkunft/{id}" (HTTP-GET) If a new AngebotUnterkunft entity has been created, the new entity should be posted to the relative URL: "/AngebotService/angebotunterkunft" (HTTP-POST) If an existing AngebotUnterkunft entity has been updated, the modified entity should be sent to the relative URL: "/AngebotService/angebotunterkunft/{id}" (HTTP-PUT) If an existing AngebotUnterkunft entity has to be deleted, the following relative URL should be called: "/AngebotService/angebotunterkunft/{id}" (HTTP-DELETE) 3. The VerfuegbarkeitView must contain the following fields: - name: Datum type: DATE - name: IstBelegt type: BOOL - name: LetzteAktualisierung type: DATE - name: Quelle type: STRING - name: Unterkunft type: Unterkunft The data source for the [Unterkunft] select control should be loaded from the relative URL: "/UnterkunftService/unterkunft" (HTTP-GET) An existing Verfuegbarkeit entity should be loaded from the relative URL: "/AngebotService/verfuegbarkeit/{id}" (HTTP-GET) If a new Verfuegbarkeit entity has been created, the new entity should be posted to the relative URL: "/AngebotService/verfuegbarkeit" (HTTP-POST) If an existing Verfuegbarkeit entity has been updated, the modified entity should be sent to the relative URL: "/AngebotService/verfuegbarkeit/{id}" (HTTP-PUT) If an existing Verfuegbarkeit entity has to be deleted, the following relative URL should be called: "/AngebotService/verfuegbarkeit/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum