Overview
Summary
Contact
Donate
Imprint
Prompt for the
RestaurantTagApp
Please create a React-JS application for the RestaurantTagModule. The application has to offer the following views for the user interface: 1. RatingView 2. RestaurantTagView 3. RestaurantTagLinkView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The RatingView must contain the following fields: - name: Comment type: STRING - name: CreatedAt type: DATE - name: Customer type: Customer - name: CustomerOrder type: LONG - name: IsVerified type: BOOL - name: RatingValue type: LONG - name: Restaurant type: Restaurant The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing Rating entity should be loaded from the relative URL: "/RestaurantTagService/rating/{id}" (HTTP-GET) If a new Rating entity has been created, the new entity should be posted to the relative URL: "/RestaurantTagService/rating" (HTTP-POST) If an existing Rating entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantTagService/rating/{id}" (HTTP-PUT) If an existing Rating entity has to be deleted, the following relative URL should be called: "/RestaurantTagService/rating/{id}" (HTTP-DELETE) 2. The RestaurantTagView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing RestaurantTag entity should be loaded from the relative URL: "/RestaurantTagService/restauranttag/{id}" (HTTP-GET) If a new RestaurantTag entity has been created, the new entity should be posted to the relative URL: "/RestaurantTagService/restauranttag" (HTTP-POST) If an existing RestaurantTag entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantTagService/restauranttag/{id}" (HTTP-PUT) If an existing RestaurantTag entity has to be deleted, the following relative URL should be called: "/RestaurantTagService/restauranttag/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RestaurantTagLink columns: - column: Restaurant - column: RestaurantTag The table should have the title "RestaurantTagLinks" und the data must be loaded from the server with the following relative URL: "/RestaurantTagService/restauranttaglink/restauranttag/{id}" 3. The RestaurantTagLinkView must contain the following fields: - name: Restaurant type: Restaurant - name: RestaurantTag type: RestaurantTag The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) The data source for the [RestaurantTag] select control should be loaded from the relative URL: "/RestaurantTagService/restauranttag" (HTTP-GET) An existing RestaurantTagLink entity should be loaded from the relative URL: "/RestaurantTagService/restauranttaglink/{id}" (HTTP-GET) If a new RestaurantTagLink entity has been created, the new entity should be posted to the relative URL: "/RestaurantTagService/restauranttaglink" (HTTP-POST) If an existing RestaurantTagLink entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantTagService/restauranttaglink/{id}" (HTTP-PUT) If an existing RestaurantTagLink entity has to be deleted, the following relative URL should be called: "/RestaurantTagService/restauranttaglink/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint