Overview
Summary
Contact
Donate
Imprint
Prompt for the
BookingView
Please create a React-JS view called "BookingView" for the fields of the Booking entity. The BookingView must contain the following fields: - name: BookingStatus type: STRING - name: CancellationPolicy type: STRING - name: CancelledAt type: DATE - name: CheckInDate type: DATE - name: CheckOutDate type: DATE - name: CleaningFee type: DOUBLE - name: ConfirmedAt type: DATE - name: CreatedAt type: DATE - name: Currency type: STRING - name: GuestProfile type: GuestProfile - name: Listing type: Listing - name: NumberOfGuests type: INT - name: ServiceFeeGuest type: DOUBLE - name: ServiceFeeHost type: DOUBLE - name: TotalPrice type: DOUBLE The data source for the [GuestProfile] select control should be loaded from the relative URL: "/BookingService/guestprofile" (HTTP-GET) The data source for the [Listing] select control should be loaded from the relative URL: "/ListingService/listing" (HTTP-GET) An existing Booking entity should be loaded from the relative URL: "/BookingService/booking/{id}" (HTTP-GET) If a new Booking entity has been created, the new entity should be posted to the relative URL: "/BookingService/booking" (HTTP-POST) If an existing Booking entity has been updated, the modified entity should be sent to the relative URL: "/BookingService/booking/{id}" (HTTP-PUT) If an existing Booking entity has to be deleted, the following relative URL should be called: "/BookingService/booking/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Review columns: - column: RatingLocation - column: RatingValue - column: RatingCommunication - column: RatingOverall - column: Reviewee - column: Reviewer - column: ReviewType - column: CreatedAt - column: Booking - column: Comment - column: RatingCleanliness The table should have the title "Reviews" und the data must be loaded from the server with the following relative URL: "/MarketService/review/booking/{id}" Add a HTML table to the view with the following Payout columns: - column: Booking - column: PayoutDate - column: Amount - column: PayoutMethod - column: HostProfile - column: PayoutStatus - column: Currency The table should have the title "Payouts" und the data must be loaded from the server with the following relative URL: "/HostProfileService/payout/booking/{id}" Add a HTML table to the view with the following Payment columns: - column: Booking - column: PaymentStatus - column: PaidAt - column: Currency - column: ExternalTransactionReference - column: PlatformUser - column: Amount - column: PaymentMethod The table should have the title "Payments" und the data must be loaded from the server with the following relative URL: "/BookingService/payment/booking/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint