Overview
Summary
Contact
Donate
Imprint
Prompt for the
RestaurantApp
Please create a React-JS application for the RestaurantModule. The application has to offer the following views for the user interface: 1. RestaurantView 2. RestaurantTableView 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 RestaurantView must contain the following fields: - name: Description type: STRING - name: Location type: Location - name: Name type: STRING - name: RelatedHangar type: Hangar - name: Website type: STRING The data source for the [RelatedHangar] select control should be loaded from the relative URL: "/LocationService/hangar" (HTTP-GET) The data source for the [Location] select control should be loaded from the relative URL: "/LocationService/location" (HTTP-GET) An existing Restaurant entity should be loaded from the relative URL: "/RestaurantService/restaurant/{id}" (HTTP-GET) If a new Restaurant entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/restaurant" (HTTP-POST) If an existing Restaurant entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/restaurant/{id}" (HTTP-PUT) If an existing Restaurant entity has to be deleted, the following relative URL should be called: "/RestaurantService/restaurant/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RestaurantTable columns: - column: Capacity - column: TableNumber - column: Restaurant The table should have the title "RestaurantTables" und the data must be loaded from the server with the following relative URL: "/RestaurantService/restauranttable/restaurant/{id}" Add a HTML table to the view with the following Reservation columns: - column: Restaurant - column: Status - column: ReservationDateTime - column: PartySize - column: Customer - column: Notes The table should have the title "Reservations" und the data must be loaded from the server with the following relative URL: "/CustomerService/reservation/restaurant/{id}" 2. The RestaurantTableView must contain the following fields: - name: Capacity type: INT - name: Restaurant type: Restaurant - name: TableNumber type: STRING The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) An existing RestaurantTable entity should be loaded from the relative URL: "/RestaurantService/restauranttable/{id}" (HTTP-GET) If a new RestaurantTable entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/restauranttable" (HTTP-POST) If an existing RestaurantTable entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/restauranttable/{id}" (HTTP-PUT) If an existing RestaurantTable entity has to be deleted, the following relative URL should be called: "/RestaurantService/restauranttable/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint