Overview
Summary
Contact
Donate
Imprint
Prompt for the
MenuView
Please create a React-JS view called "MenuView" for the fields of the Menu entity. The MenuView must contain the following fields: - name: Description type: STRING - name: IsActive type: BOOL - name: Name type: STRING - name: Restaurant type: Restaurant - name: SortOrder type: LONG The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) An existing Menu entity should be loaded from the relative URL: "/RestaurantService/menu/{id}" (HTTP-GET) If a new Menu entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/menu" (HTTP-POST) If an existing Menu entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/menu/{id}" (HTTP-PUT) If an existing Menu entity has to be deleted, the following relative URL should be called: "/RestaurantService/menu/{id}" (HTTP-DELETE) Add a HTML table to the view with the following MenuSection columns: - column: Menu - column: Description - column: SortOrder - column: Name The table should have the title "MenuSections" und the data must be loaded from the server with the following relative URL: "/MenuItemService/menusection/menu/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint