Overview
Summary
Contact
Donate
Imprint
Prompt for the
FlightBookingView
Please create a React-JS view called "FlightBookingView" for the fields of the FlightBooking entity. The FlightBookingView must contain the following fields: - name: Booking type: Booking - name: CabinClass type: STRING - name: Currency type: Currency - name: PnrCode type: STRING - name: TotalAmount type: STRING 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) An existing FlightBooking entity should be loaded from the relative URL: "/CurrencyService/flightbooking/{id}" (HTTP-GET) If a new FlightBooking entity has been created, the new entity should be posted to the relative URL: "/CurrencyService/flightbooking" (HTTP-POST) If an existing FlightBooking entity has been updated, the modified entity should be sent to the relative URL: "/CurrencyService/flightbooking/{id}" (HTTP-PUT) If an existing FlightBooking entity has to be deleted, the following relative URL should be called: "/CurrencyService/flightbooking/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FlightPassenger columns: - column: NationalityCountry - column: PassengerType - column: DocumentNumber - column: FullName - column: FlightBooking - column: DateOfBirth The table should have the title "FlightPassengers" und the data must be loaded from the server with the following relative URL: "/LocationCityService/flightpassenger/flightbooking/{id}" Add a HTML table to the view with the following FlightBookingSegment columns: - column: Status - column: Flight - column: FlightBooking - column: Seat - column: SegmentNumber The table should have the title "FlightBookingSegments" und the data must be loaded from the server with the following relative URL: "/AirportService/flightbookingsegment/flightbooking/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint