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: Category type: STRING - name: Currency type: STRING - name: Description type: STRING - name: IsPhysical type: BOOL - name: Name type: STRING - name: Price type: STRING 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 OrderItem columns: - column: UnitPrice - column: Currency - column: CustomerOrder - column: Product - column: Quantity The table should have the title "OrderItems" und the data must be loaded from the server with the following relative URL: "/ProductService/orderitem/product/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint