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: CityName type: STRING - name: Country type: Country - name: StateOrRegion 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 ChargingLocation columns: - column: LocationName - column: ConnectorCount - column: Notes - column: ChargingNetwork - column: City - column: OpeningYear - column: StationCount The table should have the title "ChargingLocations" und the data must be loaded from the server with the following relative URL: "/BusinessSegmentService/charginglocation/city/{id}" Add a HTML table to the view with the following ProductionSite columns: - column: SiteType - column: Company - column: City - column: IsGigafactory - column: Notes - column: EndYear - column: SiteName - column: StartYear The table should have the title "ProductionSites" und the data must be loaded from the server with the following relative URL: "/CityService/productionsite/city/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint