Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
BuchungApp
Please create a React-JS application for the BuchungModule. The application has to offer the following views for the user interface: 1. BewertungView 2. BuchungView 3. ZahlungView 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 BewertungView must contain the following fields: - name: Buchung type: Buchung - name: Erstellzeitpunkt type: DATE - name: Freigeschaltet type: BOOL - name: Gast type: Gast - name: SterneAusstattung type: LONG - name: SterneGesamt type: LONG - name: SterneKommunikation type: LONG - name: SterneLage type: LONG - name: SterneSauberkeit type: LONG - name: Text type: STRING - name: Titel type: STRING - name: Unterkunft type: Unterkunft The data source for the [Buchung] select control should be loaded from the relative URL: "/BuchungService/buchung" (HTTP-GET) The data source for the [Unterkunft] select control should be loaded from the relative URL: "/UnterkunftService/unterkunft" (HTTP-GET) The data source for the [Gast] select control should be loaded from the relative URL: "/GastService/gast" (HTTP-GET) An existing Bewertung entity should be loaded from the relative URL: "/BuchungService/bewertung/{id}" (HTTP-GET) If a new Bewertung entity has been created, the new entity should be posted to the relative URL: "/BuchungService/bewertung" (HTTP-POST) If an existing Bewertung entity has been updated, the modified entity should be sent to the relative URL: "/BuchungService/bewertung/{id}" (HTTP-PUT) If an existing Bewertung entity has to be deleted, the following relative URL should be called: "/BuchungService/bewertung/{id}" (HTTP-DELETE) 2. The BuchungView must contain the following fields: - name: AbreiseDatum type: DATE - name: AnreiseDatum type: DATE - name: AntwortGastgeber type: STRING - name: BuchungsQuelle type: STRING - name: BuchungsZeitpunkt type: DATE - name: ErwachseneAnzahl type: LONG - name: Gast type: Gast - name: GesamtPreis type: STRING - name: HaustiereAnzahl type: LONG - name: KinderAnzahl type: LONG - name: NachrichtAnGastgeber type: STRING - name: Status type: STRING - name: StornierungsDatum type: DATE - name: StornierungsGebuehr type: STRING - name: Unterkunft type: Unterkunft - name: Waehrung type: STRING The data source for the [Unterkunft] select control should be loaded from the relative URL: "/UnterkunftService/unterkunft" (HTTP-GET) The data source for the [Gast] select control should be loaded from the relative URL: "/GastService/gast" (HTTP-GET) An existing Buchung entity should be loaded from the relative URL: "/BuchungService/buchung/{id}" (HTTP-GET) If a new Buchung entity has been created, the new entity should be posted to the relative URL: "/BuchungService/buchung" (HTTP-POST) If an existing Buchung entity has been updated, the modified entity should be sent to the relative URL: "/BuchungService/buchung/{id}" (HTTP-PUT) If an existing Buchung entity has to be deleted, the following relative URL should be called: "/BuchungService/buchung/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Bewertung columns: - column: Titel - column: SterneGesamt - column: SterneAusstattung - column: Text - column: Buchung - column: Unterkunft - column: Erstellzeitpunkt - column: Freigeschaltet - column: SterneSauberkeit - column: SterneKommunikation - column: SterneLage - column: Gast The table should have the title "Bewertungs" und the data must be loaded from the server with the following relative URL: "/BuchungService/bewertung/buchung/{id}" Add a HTML table to the view with the following Zahlung columns: - column: Buchung - column: ZahlungsStatus - column: Betrag - column: Waehrung - column: ZahlungsDatum - column: TransaktionsReferenz - column: Zahlungsart - column: Erstellzeitpunkt The table should have the title "Zahlungs" und the data must be loaded from the server with the following relative URL: "/BuchungService/zahlung/buchung/{id}" 3. The ZahlungView must contain the following fields: - name: Betrag type: STRING - name: Buchung type: Buchung - name: Erstellzeitpunkt type: DATE - name: TransaktionsReferenz type: STRING - name: Waehrung type: STRING - name: Zahlungsart type: STRING - name: ZahlungsDatum type: DATE - name: ZahlungsStatus type: STRING The data source for the [Buchung] select control should be loaded from the relative URL: "/BuchungService/buchung" (HTTP-GET) An existing Zahlung entity should be loaded from the relative URL: "/BuchungService/zahlung/{id}" (HTTP-GET) If a new Zahlung entity has been created, the new entity should be posted to the relative URL: "/BuchungService/zahlung" (HTTP-POST) If an existing Zahlung entity has been updated, the modified entity should be sent to the relative URL: "/BuchungService/zahlung/{id}" (HTTP-PUT) If an existing Zahlung entity has to be deleted, the following relative URL should be called: "/BuchungService/zahlung/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum