Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
CanteenApp
Please create a React-JS application for the CanteenModule. The application has to offer the following views for the user interface: 1. BillOfFareView 2. CanteenView 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 BillOfFareView must contain the following fields: - name: BillOfFareDate type: DATE - name: Canteen type: Canteen The data source for the [Canteen] select control should be loaded from the relative URL: "/CanteenService/canteen" (HTTP-GET) An existing BillOfFare entity should be loaded from the relative URL: "/CanteenService/billoffare/{id}" (HTTP-GET) If a new BillOfFare entity has been created, the new entity should be posted to the relative URL: "/CanteenService/billoffare" (HTTP-POST) If an existing BillOfFare entity has been updated, the modified entity should be sent to the relative URL: "/CanteenService/billoffare/{id}" (HTTP-PUT) If an existing BillOfFare entity has to be deleted, the following relative URL should be called: "/CanteenService/billoffare/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Food columns: - column: BillOfFare - column: Ingredient - column: SellingPrice - column: FoodName The table should have the title "Foods" und the data must be loaded from the server with the following relative URL: "/FoodService/food/billoffare/{id}" 2. The CanteenView must contain the following fields: - name: CanteenName type: STRING - name: Room type: Room The data source for the [Room] select control should be loaded from the relative URL: "/RoomService/room" (HTTP-GET) An existing Canteen entity should be loaded from the relative URL: "/CanteenService/canteen/{id}" (HTTP-GET) If a new Canteen entity has been created, the new entity should be posted to the relative URL: "/CanteenService/canteen" (HTTP-POST) If an existing Canteen entity has been updated, the modified entity should be sent to the relative URL: "/CanteenService/canteen/{id}" (HTTP-PUT) If an existing Canteen entity has to be deleted, the following relative URL should be called: "/CanteenService/canteen/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BillOfFare columns: - column: Canteen - column: BillOfFareDate The table should have the title "BillOfFares" und the data must be loaded from the server with the following relative URL: "/CanteenService/billoffare/canteen/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum