Overview
Summary
Contact
Donate
Imprint
Prompt for the
AirportView
Please create a React-JS view called "AirportView" for the fields of the Airport entity. The AirportView must contain the following fields: - name: City type: STRING - name: Country type: STRING - name: ElevationFt type: INT - name: IataCode type: STRING - name: IcaoCode type: STRING - name: Latitude type: DOUBLE - name: Longitude type: DOUBLE - name: Name type: STRING - name: TimeZone type: STRING An existing Airport entity should be loaded from the relative URL: "/FlightService/airport/{id}" (HTTP-GET) If a new Airport entity has been created, the new entity should be posted to the relative URL: "/FlightService/airport" (HTTP-POST) If an existing Airport entity has been updated, the modified entity should be sent to the relative URL: "/FlightService/airport/{id}" (HTTP-PUT) If an existing Airport entity has to be deleted, the following relative URL should be called: "/FlightService/airport/{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/arrivalairport/{id}" 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/departureairport/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint