Overview
Summary
Contact
Donate
Imprint
Prompt for the
AircraftView
Please create a React-JS view called "AircraftView" for the fields of the Aircraft entity. The AircraftView must contain the following fields: - name: AgeYears type: DOUBLE - name: AircraftModel type: AircraftModel - name: Airline type: Airline - name: DeliveryDate type: DATE - name: ModeS type: STRING - name: Registration type: STRING - name: SerialNumber type: STRING The data source for the [Airline] select control should be loaded from the relative URL: "/FlightService/airline" (HTTP-GET) The data source for the [AircraftModel] select control should be loaded from the relative URL: "/AircraftService/aircraftmodel" (HTTP-GET) An existing Aircraft entity should be loaded from the relative URL: "/AircraftService/aircraft/{id}" (HTTP-GET) If a new Aircraft entity has been created, the new entity should be posted to the relative URL: "/AircraftService/aircraft" (HTTP-POST) If an existing Aircraft entity has been updated, the modified entity should be sent to the relative URL: "/AircraftService/aircraft/{id}" (HTTP-PUT) If an existing Aircraft entity has to be deleted, the following relative URL should be called: "/AircraftService/aircraft/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Flight columns: - column: ActualArrivalUtc - column: ActualDepartureUtc - column: DistanceNm - column: LastPositionTimeUtc - column: Status - column: Live - column: Callsign - column: ArrivalAirport - column: DepartureAirport - column: Aircraft - column: ScheduledArrivalUtc - column: Airline - column: ScheduledDepartureUtc - column: Number - column: ProgressPercent The table should have the title "Flights" und the data must be loaded from the server with the following relative URL: "/FlightService/flight/aircraft/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint