Overview
Summary
Contact
Donate
Imprint
Prompt for the
StayBookingApp
Please create a React-JS application for the StayBookingModule. The application has to offer the following views for the user interface: 1. RoomRatePlanView 2. StayBookingView 3. StayGuestView 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 RoomRatePlanView must contain the following fields: - name: CreatedAt type: DATE - name: Description type: STRING - name: FreeCancellationUntilDays type: INT - name: IncludesBreakfast type: BOOL - name: IsRefundable type: BOOL - name: MaximumStayNights type: INT - name: MinimumStayNights type: INT - name: Name type: STRING - name: RoomType type: RoomType The data source for the [RoomType] select control should be loaded from the relative URL: "/RoomTypeService/roomtype" (HTTP-GET) An existing RoomRatePlan entity should be loaded from the relative URL: "/StayBookingService/roomrateplan/{id}" (HTTP-GET) If a new RoomRatePlan entity has been created, the new entity should be posted to the relative URL: "/StayBookingService/roomrateplan" (HTTP-POST) If an existing RoomRatePlan entity has been updated, the modified entity should be sent to the relative URL: "/StayBookingService/roomrateplan/{id}" (HTTP-PUT) If an existing RoomRatePlan entity has to be deleted, the following relative URL should be called: "/StayBookingService/roomrateplan/{id}" (HTTP-DELETE) Add a HTML table to the view with the following StayBooking columns: - column: Booking - column: CheckOutDate - column: RoomType - column: Adults - column: Children - column: SpecialRequests - column: NumberOfRooms - column: RoomRatePlan - column: CheckInDate - column: BaseAmount - column: Currency - column: CancellationPolicySnapshot - column: TaxesAmount - column: Property - column: FeesAmount The table should have the title "StayBookings" und the data must be loaded from the server with the following relative URL: "/StayBookingService/staybooking/roomrateplan/{id}" Add a HTML table to the view with the following RoomRatePlanPrice columns: - column: DateFrom - column: Currency - column: TaxesIncluded - column: FeesIncluded - column: PricePerNight - column: RoomRatePlan - column: DateTo The table should have the title "RoomRatePlanPrices" und the data must be loaded from the server with the following relative URL: "/CurrencyService/roomrateplanprice/roomrateplan/{id}" 2. 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}" 3. The StayGuestView must contain the following fields: - name: Age type: INT - name: Email type: STRING - name: FullName type: STRING - name: IsPrimary type: BOOL - name: PhoneNumber type: STRING - name: StayBooking type: StayBooking The data source for the [StayBooking] select control should be loaded from the relative URL: "/StayBookingService/staybooking" (HTTP-GET) An existing StayGuest entity should be loaded from the relative URL: "/StayBookingService/stayguest/{id}" (HTTP-GET) If a new StayGuest entity has been created, the new entity should be posted to the relative URL: "/StayBookingService/stayguest" (HTTP-POST) If an existing StayGuest entity has been updated, the modified entity should be sent to the relative URL: "/StayBookingService/stayguest/{id}" (HTTP-PUT) If an existing StayGuest entity has to be deleted, the following relative URL should be called: "/StayBookingService/stayguest/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint