Overview
Summary
Contact
Donate
Imprint
Prompt for the
GuestProfileView
Please create a React-JS view called "GuestProfileView" for the fields of the GuestProfile entity. The GuestProfileView must contain the following fields: - name: About type: STRING - name: CreatedAt type: DATE - name: OverallRating type: DOUBLE - name: PlatformUser type: PlatformUser - name: TripsCount type: INT The data source for the [PlatformUser] select control should be loaded from the relative URL: "/PlatformUserService/platformuser" (HTTP-GET) An existing GuestProfile entity should be loaded from the relative URL: "/BookingService/guestprofile/{id}" (HTTP-GET) If a new GuestProfile entity has been created, the new entity should be posted to the relative URL: "/BookingService/guestprofile" (HTTP-POST) If an existing GuestProfile entity has been updated, the modified entity should be sent to the relative URL: "/BookingService/guestprofile/{id}" (HTTP-PUT) If an existing GuestProfile entity has to be deleted, the following relative URL should be called: "/BookingService/guestprofile/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Booking columns: - column: CleaningFee - column: Listing - column: CheckInDate - column: BookingStatus - column: GuestProfile - column: CreatedAt - column: CancellationPolicy - column: CheckOutDate - column: ServiceFeeGuest - column: TotalPrice - column: ServiceFeeHost - column: CancelledAt - column: Currency - column: ConfirmedAt - column: NumberOfGuests The table should have the title "Bookings" und the data must be loaded from the server with the following relative URL: "/BookingService/booking/guestprofile/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint