Overview
Summary
Contact
Donate
Imprint
Prompt for the
VehicleView
Please create a React-JS view called "VehicleView" for the fields of the Vehicle entity. The VehicleView must contain the following fields: - name: Capacity type: INT - name: Color type: STRING - name: Make type: STRING - name: Model type: STRING - name: PlateCountry type: STRING - name: PlateNumber type: STRING - name: VehicleType type: STRING - name: Year type: INT An existing Vehicle entity should be loaded from the relative URL: "/VehicleService/vehicle/{id}" (HTTP-GET) If a new Vehicle entity has been created, the new entity should be posted to the relative URL: "/VehicleService/vehicle" (HTTP-POST) If an existing Vehicle entity has been updated, the modified entity should be sent to the relative URL: "/VehicleService/vehicle/{id}" (HTTP-PUT) If an existing Vehicle entity has to be deleted, the following relative URL should be called: "/VehicleService/vehicle/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Trip columns: - column: CompletedAt - column: RequestedAt - column: PriceCurrency - column: Service - column: StartedAt - column: AcceptedAt - column: DurationMinutes - column: DriverAccount - column: Status - column: DistanceKm - column: PriceAmount - column: RiderAccount - column: OriginCity - column: Vehicle - column: CanceledAt - column: DestinationCity The table should have the title "Trips" und the data must be loaded from the server with the following relative URL: "/VehicleService/trip/vehicle/{id}" Add a HTML table to the view with the following DriverVehicle columns: - column: EndDate - column: StartDate - column: DriverAccount - column: PrimaryFlag - column: Vehicle The table should have the title "DriverVehicles" und the data must be loaded from the server with the following relative URL: "/VehicleService/drivervehicle/vehicle/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint