Overview
Summary
Contact
Donate
Imprint
Prompt for the
CityView
Please create a React-JS view called "CityView" for the fields of the City entity. The CityView must contain the following fields: - name: Country type: Country - name: Latitude type: DOUBLE - name: Longitude type: DOUBLE - name: Name type: STRING - name: Region type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/CityService/country" (HTTP-GET) An existing City entity should be loaded from the relative URL: "/CityService/city/{id}" (HTTP-GET) If a new City entity has been created, the new entity should be posted to the relative URL: "/CityService/city" (HTTP-POST) If an existing City entity has been updated, the modified entity should be sent to the relative URL: "/CityService/city/{id}" (HTTP-PUT) If an existing City entity has to be deleted, the following relative URL should be called: "/CityService/city/{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/city/{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/origincity/{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/destinationcity/{id}" Add a HTML table to the view with the following Lawsuit columns: - column: JurisdictionCountry - column: FiledDate - column: Company - column: CaseName - column: ResolvedDate - column: CaseType - column: Description - column: Outcome - column: SettlementCurrency - column: JurisdictionCity - column: SettlementAmount The table should have the title "Lawsuits" und the data must be loaded from the server with the following relative URL: "/CityService/lawsuit/jurisdictioncity/{id}" Add a HTML table to the view with the following RegulatoryAction columns: - column: City - column: Country - column: StartDate - column: AuthorityName - column: SourceReference - column: Company - column: ActionType - column: Description - column: EndDate The table should have the title "RegulatoryActions" und the data must be loaded from the server with the following relative URL: "/CompanyService/regulatoryaction/city/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint