Overview
Summary
Contact
Donate
Imprint
Prompt for the
AircraftApp
Please create a React-JS application for the AircraftModule. The application has to offer the following views for the user interface: 1. AdBlockDetectionEventView 2. AircraftView 3. AircraftModelView 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 AdBlockDetectionEventView must contain the following fields: - name: ActionTaken type: STRING - name: DetectedAtUtc type: DATE - name: MessageShown type: STRING - name: UserAccount type: UserAccount The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing AdBlockDetectionEvent entity should be loaded from the relative URL: "/AircraftService/adblockdetectionevent/{id}" (HTTP-GET) If a new AdBlockDetectionEvent entity has been created, the new entity should be posted to the relative URL: "/AircraftService/adblockdetectionevent" (HTTP-POST) If an existing AdBlockDetectionEvent entity has been updated, the modified entity should be sent to the relative URL: "/AircraftService/adblockdetectionevent/{id}" (HTTP-PUT) If an existing AdBlockDetectionEvent entity has to be deleted, the following relative URL should be called: "/AircraftService/adblockdetectionevent/{id}" (HTTP-DELETE) 2. 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}" 3. The AircraftModelView must contain the following fields: - name: EngineCount type: INT - name: EngineType type: STRING - name: IataCode type: STRING - name: IcaoCode type: STRING - name: Manufacturer type: STRING - name: Model type: STRING - name: WakeCategory type: STRING An existing AircraftModel entity should be loaded from the relative URL: "/AircraftService/aircraftmodel/{id}" (HTTP-GET) If a new AircraftModel entity has been created, the new entity should be posted to the relative URL: "/AircraftService/aircraftmodel" (HTTP-POST) If an existing AircraftModel entity has been updated, the modified entity should be sent to the relative URL: "/AircraftService/aircraftmodel/{id}" (HTTP-PUT) If an existing AircraftModel entity has to be deleted, the following relative URL should be called: "/AircraftService/aircraftmodel/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Aircraft columns: - column: Airline - column: DeliveryDate - column: AgeYears - column: SerialNumber - column: AircraftModel - column: Registration - column: ModeS The table should have the title "Aircrafts" und the data must be loaded from the server with the following relative URL: "/AircraftService/aircraft/aircraftmodel/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint