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: BookingCode type: STRING - name: BookingDateTime type: DATE - name: Currency type: STRING - name: Customer type: Customer - name: Flight type: Flight - name: Status type: STRING - name: TotalPrice type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [Flight] select control should be loaded from the relative URL: "/FlightService/flight" (HTTP-GET) An existing Booking entity should be loaded from the relative URL: "/CustomerService/booking/{id}" (HTTP-GET) If a new Booking entity has been created, the new entity should be posted to the relative URL: "/CustomerService/booking" (HTTP-POST) If an existing Booking entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/booking/{id}" (HTTP-PUT) If an existing Booking entity has to be deleted, the following relative URL should be called: "/CustomerService/booking/{id}" (HTTP-DELETE) Add a HTML table to the view with the following GiftRedemption columns: - column: RedemptionDate - column: Currency - column: AmountApplied - column: GiftVoucher - column: Booking The table should have the title "GiftRedemptions" und the data must be loaded from the server with the following relative URL: "/GiftVoucherService/giftredemption/booking/{id}" Add a HTML table to the view with the following BookingSeat columns: - column: Currency - column: FlightSeat - column: Price - column: Booking The table should have the title "BookingSeats" und the data must be loaded from the server with the following relative URL: "/FlightService/bookingseat/booking/{id}" Add a HTML table to the view with the following Payment columns: - column: Currency - column: PaymentMethod - column: TransactionReference - column: Amount - column: Booking - column: PaymentDateTime - column: Status The table should have the title "Payments" und the data must be loaded from the server with the following relative URL: "/CustomerService/payment/booking/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint