Overview
Summary
Contact
Donate
Imprint
Prompt for the
TripView
Please create a React-JS view called "TripView" for the fields of the Trip entity. The TripView must contain the following fields: - name: AcceptedAt type: STRING - name: CanceledAt type: STRING - name: CompletedAt type: STRING - name: DestinationCity type: City - name: DistanceKm type: DOUBLE - name: DriverAccount type: DriverAccount - name: DurationMinutes type: INT - name: OriginCity type: City - name: PriceAmount type: DOUBLE - name: PriceCurrency type: STRING - name: RequestedAt type: STRING - name: RiderAccount type: RiderAccount - name: Service type: Service - name: StartedAt type: STRING - name: Status type: STRING - name: Vehicle type: Vehicle The data source for the [Vehicle] select control should be loaded from the relative URL: "/VehicleService/vehicle" (HTTP-GET) The data source for the [DestinationCity] select control should be loaded from the relative URL: "/CityService/city" (HTTP-GET) The data source for the [RiderAccount] select control should be loaded from the relative URL: "/PlatformUserService/rideraccount" (HTTP-GET) The data source for the [DriverAccount] select control should be loaded from the relative URL: "/VehicleService/driveraccount" (HTTP-GET) The data source for the [Service] select control should be loaded from the relative URL: "/CompanyService/service" (HTTP-GET) The data source for the [OriginCity] select control should be loaded from the relative URL: "/CityService/city" (HTTP-GET) An existing Trip entity should be loaded from the relative URL: "/VehicleService/trip/{id}" (HTTP-GET) If a new Trip entity has been created, the new entity should be posted to the relative URL: "/VehicleService/trip" (HTTP-POST) If an existing Trip entity has been updated, the modified entity should be sent to the relative URL: "/VehicleService/trip/{id}" (HTTP-PUT) If an existing Trip entity has to be deleted, the following relative URL should be called: "/VehicleService/trip/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TripPromotion columns: - column: AppliedAmount - column: Currency - column: Trip - column: Promotion The table should have the title "TripPromotions" und the data must be loaded from the server with the following relative URL: "/VehicleService/trippromotion/trip/{id}" Add a HTML table to the view with the following TripPayment columns: - column: Amount - column: RefundAmount - column: RefundCurrency - column: Currency - column: CapturedAt - column: Trip - column: PaymentMethod The table should have the title "TripPayments" und the data must be loaded from the server with the following relative URL: "/VehicleService/trippayment/trip/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint