Overview
Summary
Contact
Donate
Imprint
Prompt for the
StayBookingView
Please create a React-JS view called "StayBookingView" for the fields of the StayBooking entity. The StayBookingView must contain the following fields: - name: Adults type: INT - name: BaseAmount type: STRING - name: Booking type: Booking - name: CancellationPolicySnapshot type: STRING - name: CheckInDate type: DATE - name: CheckOutDate type: DATE - name: Children type: INT - name: Currency type: Currency - name: FeesAmount type: STRING - name: NumberOfRooms type: INT - name: Property type: Property - name: RoomRatePlan type: RoomRatePlan - name: RoomType type: RoomType - name: SpecialRequests type: STRING - name: TaxesAmount type: STRING The data source for the [RoomType] select control should be loaded from the relative URL: "/RoomTypeService/roomtype" (HTTP-GET) The data source for the [RoomRatePlan] select control should be loaded from the relative URL: "/StayBookingService/roomrateplan" (HTTP-GET) The data source for the [Currency] select control should be loaded from the relative URL: "/CurrencyService/currency" (HTTP-GET) The data source for the [Booking] select control should be loaded from the relative URL: "/BookingService/booking" (HTTP-GET) The data source for the [Property] select control should be loaded from the relative URL: "/PropertyService/property" (HTTP-GET) An existing StayBooking entity should be loaded from the relative URL: "/StayBookingService/staybooking/{id}" (HTTP-GET) If a new StayBooking entity has been created, the new entity should be posted to the relative URL: "/StayBookingService/staybooking" (HTTP-POST) If an existing StayBooking entity has been updated, the modified entity should be sent to the relative URL: "/StayBookingService/staybooking/{id}" (HTTP-PUT) If an existing StayBooking entity has to be deleted, the following relative URL should be called: "/StayBookingService/staybooking/{id}" (HTTP-DELETE) Add a HTML table to the view with the following StayBookingPriceBreakdown columns: - column: StayBooking - column: Amount - column: Description - column: Currency - column: Date - column: LineType The table should have the title "StayBookingPriceBreakdowns" und the data must be loaded from the server with the following relative URL: "/CurrencyService/staybookingpricebreakdown/staybooking/{id}" Add a HTML table to the view with the following StayGuest columns: - column: Email - column: Age - column: StayBooking - column: PhoneNumber - column: IsPrimary - column: FullName The table should have the title "StayGuests" und the data must be loaded from the server with the following relative URL: "/StayBookingService/stayguest/staybooking/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint