Overview
Summary
Contact
Donate
Imprint
Prompt for the
FlightApp
Please create a React-JS application for the FlightModule. The application has to offer the following views for the user interface: 1. BookingSeatView 2. FlightView 3. FlightSeatView 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 BookingSeatView must contain the following fields: - name: Booking type: Booking - name: Currency type: STRING - name: FlightSeat type: FlightSeat - name: Price type: STRING The data source for the [FlightSeat] select control should be loaded from the relative URL: "/FlightService/flightseat" (HTTP-GET) The data source for the [Booking] select control should be loaded from the relative URL: "/CustomerService/booking" (HTTP-GET) An existing BookingSeat entity should be loaded from the relative URL: "/FlightService/bookingseat/{id}" (HTTP-GET) If a new BookingSeat entity has been created, the new entity should be posted to the relative URL: "/FlightService/bookingseat" (HTTP-POST) If an existing BookingSeat entity has been updated, the modified entity should be sent to the relative URL: "/FlightService/bookingseat/{id}" (HTTP-PUT) If an existing BookingSeat entity has to be deleted, the following relative URL should be called: "/FlightService/bookingseat/{id}" (HTTP-DELETE) 2. 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}" 3. The FlightSeatView must contain the following fields: - name: Currency type: STRING - name: Flight type: Flight - name: Price type: STRING - name: Seat type: Seat - name: SeatStatus type: STRING The data source for the [Seat] select control should be loaded from the relative URL: "/ZeppelinService/seat" (HTTP-GET) The data source for the [Flight] select control should be loaded from the relative URL: "/FlightService/flight" (HTTP-GET) An existing FlightSeat entity should be loaded from the relative URL: "/FlightService/flightseat/{id}" (HTTP-GET) If a new FlightSeat entity has been created, the new entity should be posted to the relative URL: "/FlightService/flightseat" (HTTP-POST) If an existing FlightSeat entity has been updated, the modified entity should be sent to the relative URL: "/FlightService/flightseat/{id}" (HTTP-PUT) If an existing FlightSeat entity has to be deleted, the following relative URL should be called: "/FlightService/flightseat/{id}" (HTTP-DELETE) 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/flightseat/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint