Overview
Summary
Contact
Donate
Imprint
Prompt for the
ProductApp
Please create a React-JS application for the ProductModule. The application has to offer the following views for the user interface: 1. OrderItemView 2. ProductView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The OrderItemView must contain the following fields: - name: Currency type: STRING - name: CustomerOrder type: INT - name: Product type: Product - name: Quantity type: INT - name: UnitPrice type: STRING The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing OrderItem entity should be loaded from the relative URL: "/ProductService/orderitem/{id}" (HTTP-GET) If a new OrderItem entity has been created, the new entity should be posted to the relative URL: "/ProductService/orderitem" (HTTP-POST) If an existing OrderItem entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/orderitem/{id}" (HTTP-PUT) If an existing OrderItem entity has to be deleted, the following relative URL should be called: "/ProductService/orderitem/{id}" (HTTP-DELETE) 2. 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