Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
FlightScheduleView
Please create a React-JS view called "FlightScheduleView" for the fields of the FlightSchedule entity. The FlightScheduleView must contain the following fields: - name: AircraftModel type: AircraftModel - name: ArrivalTimeLocal type: STRING - name: DepartureTimeLocal type: STRING - name: EffectiveFrom type: DATE - name: EffectiveTo type: DATE - name: FlightNumber type: FlightNumber - name: OperatingDaysMask type: LONG - name: Route type: Route The data source for the [FlightNumber] select control should be loaded from the relative URL: "/FlightNumberService/flightnumber" (HTTP-GET) The data source for the [AircraftModel] select control should be loaded from the relative URL: "/AircraftModelService/aircraftmodel" (HTTP-GET) The data source for the [Route] select control should be loaded from the relative URL: "/FlightNumberService/route" (HTTP-GET) An existing FlightSchedule entity should be loaded from the relative URL: "/FlightNumberService/flightschedule/{id}" (HTTP-GET) If a new FlightSchedule entity has been created, the new entity should be posted to the relative URL: "/FlightNumberService/flightschedule" (HTTP-POST) If an existing FlightSchedule entity has been updated, the modified entity should be sent to the relative URL: "/FlightNumberService/flightschedule/{id}" (HTTP-PUT) If an existing FlightSchedule entity has to be deleted, the following relative URL should be called: "/FlightNumberService/flightschedule/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FlightInstance columns: - column: ScheduledDepartureUtc - column: ScheduledArrivalUtc - column: Status - column: FlightSchedule - column: ActualDepartureUtc - column: ActualArrivalUtc - column: Aircraft The table should have the title "FlightInstances" und the data must be loaded from the server with the following relative URL: "/FlightInstanceService/flightinstance/flightschedule/{id}"
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint