Overview
Summary
Contact
Donate
Imprint
Prompt for the
DriverAccountView
Please create a React-JS view called "DriverAccountView" for the fields of the DriverAccount entity. The DriverAccountView must contain the following fields: - name: BackgroundCheckStatus type: STRING - name: DeactivationDate type: DATE - name: LicenseCountry type: STRING - name: LicenseNumber type: STRING - name: OnboardingDate type: DATE - name: PlatformUser type: PlatformUser - name: Rating type: DOUBLE - name: VehicleRegistrationCountry type: STRING The data source for the [PlatformUser] select control should be loaded from the relative URL: "/PlatformUserService/platformuser" (HTTP-GET) An existing DriverAccount entity should be loaded from the relative URL: "/VehicleService/driveraccount/{id}" (HTTP-GET) If a new DriverAccount entity has been created, the new entity should be posted to the relative URL: "/VehicleService/driveraccount" (HTTP-POST) If an existing DriverAccount entity has been updated, the modified entity should be sent to the relative URL: "/VehicleService/driveraccount/{id}" (HTTP-PUT) If an existing DriverAccount entity has to be deleted, the following relative URL should be called: "/VehicleService/driveraccount/{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/driveraccount/{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/driveraccount/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint