Overview
Summary
Contact
Donate
Imprint
Prompt for the
MenuItemApp
Please create a React-JS application for the MenuItemModule. The application has to offer the following views for the user interface: 1. MenuItemView 2. MenuSectionView 3. OrderItemView 4. OrderItemOptionView 5. PromotionMenuItemLinkView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 views are defined below. 1. 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}" 2. The MenuSectionView must contain the following fields: - name: Description type: STRING - name: Menu type: Menu - name: Name type: STRING - name: SortOrder type: LONG The data source for the [Menu] select control should be loaded from the relative URL: "/RestaurantService/menu" (HTTP-GET) An existing MenuSection entity should be loaded from the relative URL: "/MenuItemService/menusection/{id}" (HTTP-GET) If a new MenuSection entity has been created, the new entity should be posted to the relative URL: "/MenuItemService/menusection" (HTTP-POST) If an existing MenuSection entity has been updated, the modified entity should be sent to the relative URL: "/MenuItemService/menusection/{id}" (HTTP-PUT) If an existing MenuSection entity has to be deleted, the following relative URL should be called: "/MenuItemService/menusection/{id}" (HTTP-DELETE) Add a HTML table to the view with the following MenuItem columns: - column: Name - column: IsHalal - column: ImageUrl - column: BasePrice - column: IsSpicy - column: IsVegetarian - column: MenuSection - column: IsAvailable - column: SortOrder - column: Description - column: IsVegan The table should have the title "MenuItems" und the data must be loaded from the server with the following relative URL: "/MenuItemService/menuitem/menusection/{id}" 3. 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}" 4. The OrderItemOptionView must contain the following fields: - name: MenuItemOption type: MenuItemOption - name: OptionNameCopy type: STRING - name: OrderItem type: OrderItem - name: PriceDelta type: STRING - name: Quantity type: LONG - name: TotalPrice type: STRING The data source for the [MenuItemOption] select control should be loaded from the relative URL: "/MenuItemOptionService/menuitemoption" (HTTP-GET) The data source for the [OrderItem] select control should be loaded from the relative URL: "/MenuItemService/orderitem" (HTTP-GET) An existing OrderItemOption entity should be loaded from the relative URL: "/MenuItemService/orderitemoption/{id}" (HTTP-GET) If a new OrderItemOption entity has been created, the new entity should be posted to the relative URL: "/MenuItemService/orderitemoption" (HTTP-POST) If an existing OrderItemOption entity has been updated, the modified entity should be sent to the relative URL: "/MenuItemService/orderitemoption/{id}" (HTTP-PUT) If an existing OrderItemOption entity has to be deleted, the following relative URL should be called: "/MenuItemService/orderitemoption/{id}" (HTTP-DELETE) 5. The PromotionMenuItemLinkView must contain the following fields: - name: MenuItem type: MenuItem - name: Promotion type: Promotion The data source for the [MenuItem] select control should be loaded from the relative URL: "/MenuItemService/menuitem" (HTTP-GET) The data source for the [Promotion] select control should be loaded from the relative URL: "/RestaurantService/promotion" (HTTP-GET) An existing PromotionMenuItemLink entity should be loaded from the relative URL: "/MenuItemService/promotionmenuitemlink/{id}" (HTTP-GET) If a new PromotionMenuItemLink entity has been created, the new entity should be posted to the relative URL: "/MenuItemService/promotionmenuitemlink" (HTTP-POST) If an existing PromotionMenuItemLink entity has been updated, the modified entity should be sent to the relative URL: "/MenuItemService/promotionmenuitemlink/{id}" (HTTP-PUT) If an existing PromotionMenuItemLink entity has to be deleted, the following relative URL should be called: "/MenuItemService/promotionmenuitemlink/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint