Overview
Summary
Contact
Donate
Imprint
Prompt for the
ReviewView
Please create a React-JS view called "ReviewView" for the fields of the Review entity. The ReviewView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: Customer type: Customer - name: IsVerifiedPurchase type: BOOL - name: Product type: Product - name: Rating type: INT - name: Title type: STRING - name: UpdatedAt type: DATE The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing Review entity should be loaded from the relative URL: "/CustomerService/review/{id}" (HTTP-GET) If a new Review entity has been created, the new entity should be posted to the relative URL: "/CustomerService/review" (HTTP-POST) If an existing Review entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/review/{id}" (HTTP-PUT) If an existing Review entity has to be deleted, the following relative URL should be called: "/CustomerService/review/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ReviewComment columns: - column: Body - column: CreatedAt - column: Review - column: Customer The table should have the title "ReviewComments" und the data must be loaded from the server with the following relative URL: "/CustomerService/reviewcomment/review/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint