Overview
Summary
Contact
Donate
Imprint
Prompt for the
ProductView
Please create a React-JS view called "ProductView" for the fields of the Product entity. The ProductView must contain the following fields: - name: AverageRating type: DOUBLE - name: Company type: Company - name: Description type: STRING - name: Name type: STRING - name: ProductCategory type: ProductCategory - name: ReviewsCount type: INT - name: Url type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [ProductCategory] select control should be loaded from the relative URL: "/ProductService/productcategory" (HTTP-GET) An existing Product entity should be loaded from the relative URL: "/ProductService/product/{id}" (HTTP-GET) If a new Product entity has been created, the new entity should be posted to the relative URL: "/ProductService/product" (HTTP-POST) If an existing Product entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/product/{id}" (HTTP-PUT) If an existing Product entity has to be deleted, the following relative URL should be called: "/ProductService/product/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ProductReview columns: - column: Title - column: Body - column: Rating - column: IsVerifiedBuyer - column: Product - column: ReviewerUser - column: CreatedAt The table should have the title "ProductReviews" und the data must be loaded from the server with the following relative URL: "/ProductService/productreview/product/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint