Overview
Summary
Contact
Donate
Imprint
Prompt for the
ServiceView
Please create a React-JS view called "ServiceView" for the fields of the Service entity. The ServiceView must contain the following fields: - name: Company type: Company - name: Description type: STRING - name: LaunchDate type: DATE - name: Name type: STRING - name: ServiceType type: STRING - name: Status type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing Service entity should be loaded from the relative URL: "/CompanyService/service/{id}" (HTTP-GET) If a new Service entity has been created, the new entity should be posted to the relative URL: "/CompanyService/service" (HTTP-POST) If an existing Service entity has been updated, the modified entity should be sent to the relative URL: "/CompanyService/service/{id}" (HTTP-PUT) If an existing Service entity has to be deleted, the following relative URL should be called: "/CompanyService/service/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ServiceRegion columns: - column: StartDate - column: Service - column: City - column: Notes - column: EndDate - column: Country The table should have the title "ServiceRegions" und the data must be loaded from the server with the following relative URL: "/CompanyService/serviceregion/service/{id}" 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/service/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint