Overview
Summary
Contact
Donate
Imprint
Prompt for the
MenuItemView
Please create a React-JS view called "MenuItemView" for the fields of the MenuItem entity. The MenuItemView must contain the following fields: - name: BasePrice type: STRING - name: Description type: STRING - name: ImageUrl type: STRING - name: IsAvailable type: BOOL - name: IsHalal type: BOOL - name: IsSpicy type: BOOL - name: IsVegan type: BOOL - name: IsVegetarian type: BOOL - name: MenuSection type: MenuSection - name: Name type: STRING - name: SortOrder type: LONG The data source for the [MenuSection] select control should be loaded from the relative URL: "/MenuItemService/menusection" (HTTP-GET) An existing MenuItem entity should be loaded from the relative URL: "/MenuItemService/menuitem/{id}" (HTTP-GET) If a new MenuItem entity has been created, the new entity should be posted to the relative URL: "/MenuItemService/menuitem" (HTTP-POST) If an existing MenuItem entity has been updated, the modified entity should be sent to the relative URL: "/MenuItemService/menuitem/{id}" (HTTP-PUT) If an existing MenuItem entity has to be deleted, the following relative URL should be called: "/MenuItemService/menuitem/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PromotionMenuItemLink columns: - column: Promotion - column: MenuItem The table should have the title "PromotionMenuItemLinks" und the data must be loaded from the server with the following relative URL: "/MenuItemService/promotionmenuitemlink/menuitem/{id}" Add a HTML table to the view with the following MenuItemTagLink columns: - column: MenuItemTag - column: MenuItem The table should have the title "MenuItemTagLinks" und the data must be loaded from the server with the following relative URL: "/MenuItemTagService/menuitemtaglink/menuitem/{id}" Add a HTML table to the view with the following MenuItemOptionGroup columns: - column: IsRequired - column: SortOrder - column: Description - column: MinimumSelection - column: Name - column: MenuItem - column: MaximumSelection The table should have the title "MenuItemOptionGroups" und the data must be loaded from the server with the following relative URL: "/MenuItemOptionService/menuitemoptiongroup/menuitem/{id}" Add a HTML table to the view with the following OrderItem columns: - column: TotalPrice - column: ItemNameCopy - column: CustomerOrder - column: Quantity - column: UnitPrice - column: ItemDescriptionCopy - column: SortOrder - column: MenuItem The table should have the title "OrderItems" und the data must be loaded from the server with the following relative URL: "/MenuItemService/orderitem/menuitem/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint