Overview
Summary
Contact
Donate
Imprint
Prompt for the
RestaurantCategoryApp
Please create a React-JS application for the RestaurantCategoryModule. The application has to offer the following views for the user interface: 1. RestaurantCategoryView 2. RestaurantCategoryLinkView 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 RestaurantCategoryView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing RestaurantCategory entity should be loaded from the relative URL: "/RestaurantCategoryService/restaurantcategory/{id}" (HTTP-GET) If a new RestaurantCategory entity has been created, the new entity should be posted to the relative URL: "/RestaurantCategoryService/restaurantcategory" (HTTP-POST) If an existing RestaurantCategory entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantCategoryService/restaurantcategory/{id}" (HTTP-PUT) If an existing RestaurantCategory entity has to be deleted, the following relative URL should be called: "/RestaurantCategoryService/restaurantcategory/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RestaurantCategoryLink columns: - column: RestaurantCategory - column: Restaurant The table should have the title "RestaurantCategoryLinks" und the data must be loaded from the server with the following relative URL: "/RestaurantCategoryService/restaurantcategorylink/restaurantcategory/{id}" 2. The RestaurantCategoryLinkView must contain the following fields: - name: Restaurant type: Restaurant - name: RestaurantCategory type: RestaurantCategory The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) The data source for the [RestaurantCategory] select control should be loaded from the relative URL: "/RestaurantCategoryService/restaurantcategory" (HTTP-GET) An existing RestaurantCategoryLink entity should be loaded from the relative URL: "/RestaurantCategoryService/restaurantcategorylink/{id}" (HTTP-GET) If a new RestaurantCategoryLink entity has been created, the new entity should be posted to the relative URL: "/RestaurantCategoryService/restaurantcategorylink" (HTTP-POST) If an existing RestaurantCategoryLink entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantCategoryService/restaurantcategorylink/{id}" (HTTP-PUT) If an existing RestaurantCategoryLink entity has to be deleted, the following relative URL should be called: "/RestaurantCategoryService/restaurantcategorylink/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint