Overview
Summary
Contact
Donate
Imprint
Prompt for the
ReceiverApp
Please create a React-JS application for the ReceiverModule. The application has to offer the following views for the user interface: 1. FlightPositionView 2. ReceiverView 3. ReceiverCoverageAreaView 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 FlightPositionView must contain the following fields: - name: AltitudeFt type: INT - name: Flight type: Flight - name: GroundSpeedKt type: INT - name: Latitude type: DOUBLE - name: Longitude type: DOUBLE - name: OnGround type: BOOL - name: Receiver type: Receiver - name: Source type: STRING - name: TimestampUtc type: DATE - name: TrackDeg type: DOUBLE - name: VerticalSpeedFpm type: INT The data source for the [Flight] select control should be loaded from the relative URL: "/FlightService/flight" (HTTP-GET) The data source for the [Receiver] select control should be loaded from the relative URL: "/ReceiverService/receiver" (HTTP-GET) An existing FlightPosition entity should be loaded from the relative URL: "/ReceiverService/flightposition/{id}" (HTTP-GET) If a new FlightPosition entity has been created, the new entity should be posted to the relative URL: "/ReceiverService/flightposition" (HTTP-POST) If an existing FlightPosition entity has been updated, the modified entity should be sent to the relative URL: "/ReceiverService/flightposition/{id}" (HTTP-PUT) If an existing FlightPosition entity has to be deleted, the following relative URL should be called: "/ReceiverService/flightposition/{id}" (HTTP-DELETE) 2. The ReceiverView must contain the following fields: - name: Active type: BOOL - name: AltitudeFt type: INT - name: InstallDate type: DATE - name: Latitude type: DOUBLE - name: Longitude type: DOUBLE - name: Name type: STRING - name: OwnerUser type: UserAccount - name: SerialNumber type: STRING - name: SourceType type: STRING The data source for the [OwnerUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Receiver entity should be loaded from the relative URL: "/ReceiverService/receiver/{id}" (HTTP-GET) If a new Receiver entity has been created, the new entity should be posted to the relative URL: "/ReceiverService/receiver" (HTTP-POST) If an existing Receiver entity has been updated, the modified entity should be sent to the relative URL: "/ReceiverService/receiver/{id}" (HTTP-PUT) If an existing Receiver entity has to be deleted, the following relative URL should be called: "/ReceiverService/receiver/{id}" (HTTP-DELETE) 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/receiver/{id}" Add a HTML table to the view with the following ReceiverCoverageArea columns: - column: ValidFromUtc - column: ValidToUtc - column: Receiver - column: PolygonWkt The table should have the title "ReceiverCoverageAreas" und the data must be loaded from the server with the following relative URL: "/ReceiverService/receivercoveragearea/receiver/{id}" 3. The ReceiverCoverageAreaView must contain the following fields: - name: PolygonWkt type: STRING - name: Receiver type: Receiver - name: ValidFromUtc type: DATE - name: ValidToUtc type: DATE The data source for the [Receiver] select control should be loaded from the relative URL: "/ReceiverService/receiver" (HTTP-GET) An existing ReceiverCoverageArea entity should be loaded from the relative URL: "/ReceiverService/receivercoveragearea/{id}" (HTTP-GET) If a new ReceiverCoverageArea entity has been created, the new entity should be posted to the relative URL: "/ReceiverService/receivercoveragearea" (HTTP-POST) If an existing ReceiverCoverageArea entity has been updated, the modified entity should be sent to the relative URL: "/ReceiverService/receivercoveragearea/{id}" (HTTP-PUT) If an existing ReceiverCoverageArea entity has to be deleted, the following relative URL should be called: "/ReceiverService/receivercoveragearea/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint