Overview
Summary
Contact
Donate
Imprint
Prompt for the
RouteView
Please create a React-JS view called "RouteView" for the fields of the Route entity. The RouteView must contain the following fields: - name: ActualArrivalUtc type: DATE - name: ActualDepartureUtc type: DATE - name: DistanceNm type: STRING - name: EndPort type: Port - name: Name type: STRING - name: PlannedArrivalUtc type: DATE - name: PlannedDepartureUtc type: DATE - name: StartPort type: Port - name: Status type: STRING - name: Vessel type: Vessel The data source for the [Vessel] select control should be loaded from the relative URL: "/VesselService/vessel" (HTTP-GET) The data source for the [EndPort] select control should be loaded from the relative URL: "/PortService/port" (HTTP-GET) The data source for the [StartPort] select control should be loaded from the relative URL: "/PortService/port" (HTTP-GET) An existing Route entity should be loaded from the relative URL: "/PortService/route/{id}" (HTTP-GET) If a new Route entity has been created, the new entity should be posted to the relative URL: "/PortService/route" (HTTP-POST) If an existing Route entity has been updated, the modified entity should be sent to the relative URL: "/PortService/route/{id}" (HTTP-PUT) If an existing Route entity has to be deleted, the following relative URL should be called: "/PortService/route/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PortCall columns: - column: DepartureActualUtc - column: BerthName - column: Vessel - column: DepartureEstimatedUtc - column: ArrivalEstimatedUtc - column: ArrivalActualUtc - column: Route - column: DraftDeparture - column: DraftArrival - column: Port - column: Reason The table should have the title "PortCalls" und the data must be loaded from the server with the following relative URL: "/SubscriptionPlanService/portcall/route/{id}" Add a HTML table to the view with the following RouteWaypoint columns: - column: Longitude - column: EstimatedTimeUtc - column: Route - column: Latitude - column: SequenceNumber The table should have the title "RouteWaypoints" und the data must be loaded from the server with the following relative URL: "/SubscriptionPlanService/routewaypoint/route/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint