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: ActualArrivalUtc type: DATE - name: ActualDepartureUtc type: DATE - name: Aircraft type: Aircraft - name: Airline type: Airline - name: ArrivalAirport type: Airport - name: Callsign type: STRING - name: DepartureAirport type: Airport - name: DistanceNm type: DOUBLE - name: LastPositionTimeUtc type: DATE - name: Live type: BOOL - name: Number type: STRING - name: ProgressPercent type: DOUBLE - name: ScheduledArrivalUtc type: DATE - name: ScheduledDepartureUtc type: DATE - name: Status type: STRING The data source for the [DepartureAirport] select control should be loaded from the relative URL: "/FlightService/airport" (HTTP-GET) The data source for the [ArrivalAirport] select control should be loaded from the relative URL: "/FlightService/airport" (HTTP-GET) The data source for the [Airline] select control should be loaded from the relative URL: "/FlightService/airline" (HTTP-GET) The data source for the [Aircraft] select control should be loaded from the relative URL: "/AircraftService/aircraft" (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 Alert columns: - column: Type - column: CreatedAtUtc - column: Active - column: Flight - column: TriggerConditionJson - column: UserAccount The table should have the title "Alerts" und the data must be loaded from the server with the following relative URL: "/FlightService/alert/flight/{id}" Add a HTML table to the view with the following FlightPosition columns: - column: AltitudeFt - column: Source - column: Receiver - column: GroundSpeedKt - column: TrackDeg - column: Flight - column: OnGround - column: TimestampUtc - column: Longitude - column: VerticalSpeedFpm - column: Latitude The table should have the title "FlightPositions" und the data must be loaded from the server with the following relative URL: "/ReceiverService/flightposition/flight/{id}" Add a HTML table to the view with the following RouteSegment columns: - column: Flight - column: Longitude - column: PlannedSpeedKt - column: SequenceNumber - column: PlannedAltitudeFt - column: Latitude The table should have the title "RouteSegments" und the data must be loaded from the server with the following relative URL: "/FlightService/routesegment/flight/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint