Overview
Summary
Contact
Donate
Imprint
Prompt for the
RestaurantView
Please create a React-JS view called "RestaurantView" for the fields of the Restaurant entity. 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}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint