Overview
Summary
Contact
Donate
Imprint
Prompt for the
OrderItemView
Please create a React-JS view called "OrderItemView" for the fields of the OrderItem entity. The OrderItemView must contain the following fields: - name: CustomerOrder type: LONG - name: ItemDescriptionCopy type: STRING - name: ItemNameCopy type: STRING - name: MenuItem type: MenuItem - name: Quantity type: LONG - name: SortOrder type: LONG - name: TotalPrice type: STRING - name: UnitPrice type: STRING The data source for the [MenuItem] select control should be loaded from the relative URL: "/MenuItemService/menuitem" (HTTP-GET) An existing OrderItem entity should be loaded from the relative URL: "/MenuItemService/orderitem/{id}" (HTTP-GET) If a new OrderItem entity has been created, the new entity should be posted to the relative URL: "/MenuItemService/orderitem" (HTTP-POST) If an existing OrderItem entity has been updated, the modified entity should be sent to the relative URL: "/MenuItemService/orderitem/{id}" (HTTP-PUT) If an existing OrderItem entity has to be deleted, the following relative URL should be called: "/MenuItemService/orderitem/{id}" (HTTP-DELETE) Add a HTML table to the view with the following OrderItemOption columns: - column: PriceDelta - column: OrderItem - column: MenuItemOption - column: TotalPrice - column: OptionNameCopy - column: Quantity The table should have the title "OrderItemOptions" und the data must be loaded from the server with the following relative URL: "/MenuItemService/orderitemoption/orderitem/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint