Overview
Summary
Contact
Donate
Imprint
Prompt for the
FlightView
Please create a React-JS view called "FlightView" for the fields of the Flight entity. The FlightView must contain the following fields: - name: FlightNumber type: STRING - name: FlightRoute type: FlightRoute - name: ScheduledArrival type: DATE - name: ScheduledDeparture type: DATE - name: Status type: STRING - name: Zeppelin type: Zeppelin The data source for the [Zeppelin] select control should be loaded from the relative URL: "/ZeppelinService/zeppelin" (HTTP-GET) The data source for the [FlightRoute] select control should be loaded from the relative URL: "/LocationService/flightroute" (HTTP-GET) An existing Flight entity should be loaded from the relative URL: "/FlightService/flight/{id}" (HTTP-GET) If a new Flight entity has been created, the new entity should be posted to the relative URL: "/FlightService/flight" (HTTP-POST) If an existing Flight entity has been updated, the modified entity should be sent to the relative URL: "/FlightService/flight/{id}" (HTTP-PUT) If an existing Flight entity has to be deleted, the following relative URL should be called: "/FlightService/flight/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FlightSeat columns: - column: SeatStatus - column: Seat - column: Flight - column: Price - column: Currency The table should have the title "FlightSeats" und the data must be loaded from the server with the following relative URL: "/FlightService/flightseat/flight/{id}" Add a HTML table to the view with the following Booking columns: - column: Flight - column: BookingCode - column: Status - column: BookingDateTime - column: TotalPrice - column: Currency - column: Customer The table should have the title "Bookings" und the data must be loaded from the server with the following relative URL: "/CustomerService/booking/flight/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint