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: ArrivalTime type: DATE - name: DepartureTime type: DATE - name: DestinationAirport type: Airport - name: DurationMinutes type: INT - name: FlightCarrier type: FlightCarrier - name: FlightNumber type: STRING - name: OriginAirport type: Airport The data source for the [FlightCarrier] select control should be loaded from the relative URL: "/AirportService/flightcarrier" (HTTP-GET) The data source for the [OriginAirport] select control should be loaded from the relative URL: "/AirportService/airport" (HTTP-GET) The data source for the [DestinationAirport] select control should be loaded from the relative URL: "/AirportService/airport" (HTTP-GET) An existing Flight entity should be loaded from the relative URL: "/AirportService/flight/{id}" (HTTP-GET) If a new Flight entity has been created, the new entity should be posted to the relative URL: "/AirportService/flight" (HTTP-POST) If an existing Flight entity has been updated, the modified entity should be sent to the relative URL: "/AirportService/flight/{id}" (HTTP-PUT) If an existing Flight entity has to be deleted, the following relative URL should be called: "/AirportService/flight/{id}" (HTTP-DELETE) 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/flight/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint