Overview
Summary
Contact
Donate
Imprint
Prompt for the
ProductionSiteView
Please create a React-JS view called "ProductionSiteView" for the fields of the ProductionSite entity. The ProductionSiteView must contain the following fields: - name: City type: City - name: Company type: Company - name: EndYear type: INT - name: IsGigafactory type: BOOL - name: Notes type: STRING - name: SiteName type: STRING - name: SiteType type: STRING - name: StartYear type: INT The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/CityService/city" (HTTP-GET) An existing ProductionSite entity should be loaded from the relative URL: "/CityService/productionsite/{id}" (HTTP-GET) If a new ProductionSite entity has been created, the new entity should be posted to the relative URL: "/CityService/productionsite" (HTTP-POST) If an existing ProductionSite entity has been updated, the modified entity should be sent to the relative URL: "/CityService/productionsite/{id}" (HTTP-PUT) If an existing ProductionSite entity has to be deleted, the following relative URL should be called: "/CityService/productionsite/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ProductionSiteProduct columns: - column: StartYear - column: ProductionSite - column: EndYear - column: Product - column: Notes The table should have the title "ProductionSiteProducts" und the data must be loaded from the server with the following relative URL: "/CityService/productionsiteproduct/productionsite/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint