Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
FoodApp
Please create a React-JS application for the FoodModule. The application has to offer the following views for the user interface: 1. FoodView 2. FoodOrderView 3. FoodStuffView 4. FoodStuffFoodView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The FoodView must contain the following fields: - name: FoodName type: STRING - name: BillOfFare type: BillOfFare - name: SellingPrice type: DOUBLE - name: Ingredient type: STRING The data source for the [BillOfFare] select control should be loaded from the relative URL: "/CanteenService/billoffare" (HTTP-GET) An existing Food entity should be loaded from the relative URL: "/FoodService/food/{id}" (HTTP-GET) If a new Food entity has been created, the new entity should be posted to the relative URL: "/FoodService/food" (HTTP-POST) If an existing Food entity has been updated, the modified entity should be sent to the relative URL: "/FoodService/food/{id}" (HTTP-PUT) If an existing Food entity has to be deleted, the following relative URL should be called: "/FoodService/food/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FoodStuffFood columns: - column: FoodStuff - column: Food - column: PercentageRate The table should have the title "FoodStuffFoods" und the data must be loaded from the server with the following relative URL: "/FoodService/foodstufffood/food/{id}" Add a HTML table to the view with the following FoodOrder columns: - column: FoodOrderDate - column: Teacher - column: Food - column: ExternalPerson - column: Student The table should have the title "FoodOrders" und the data must be loaded from the server with the following relative URL: "/FoodService/foodorder/food/{id}" 2. The FoodOrderView must contain the following fields: - name: FoodOrderDate type: DATE - name: ExternalPerson type: ExternalPerson - name: Food type: Food - name: Teacher type: Teacher - name: Student type: Student The data source for the [ExternalPerson] select control should be loaded from the relative URL: "/ExternalPersonService/externalperson" (HTTP-GET) The data source for the [Teacher] select control should be loaded from the relative URL: "/StudentService/teacher" (HTTP-GET) The data source for the [Student] select control should be loaded from the relative URL: "/StudentService/student" (HTTP-GET) The data source for the [Food] select control should be loaded from the relative URL: "/FoodService/food" (HTTP-GET) An existing FoodOrder entity should be loaded from the relative URL: "/FoodService/foodorder/{id}" (HTTP-GET) If a new FoodOrder entity has been created, the new entity should be posted to the relative URL: "/FoodService/foodorder" (HTTP-POST) If an existing FoodOrder entity has been updated, the modified entity should be sent to the relative URL: "/FoodService/foodorder/{id}" (HTTP-PUT) If an existing FoodOrder entity has to be deleted, the following relative URL should be called: "/FoodService/foodorder/{id}" (HTTP-DELETE) 3. The FoodStuffView must contain the following fields: - name: Description type: STRING - name: FoodStuffName type: STRING An existing FoodStuff entity should be loaded from the relative URL: "/FoodService/foodstuff/{id}" (HTTP-GET) If a new FoodStuff entity has been created, the new entity should be posted to the relative URL: "/FoodService/foodstuff" (HTTP-POST) If an existing FoodStuff entity has been updated, the modified entity should be sent to the relative URL: "/FoodService/foodstuff/{id}" (HTTP-PUT) If an existing FoodStuff entity has to be deleted, the following relative URL should be called: "/FoodService/foodstuff/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PurchaseListItem columns: - column: PurchaseList - column: Price - column: FoodStuff - column: Amount The table should have the title "PurchaseListItems" und the data must be loaded from the server with the following relative URL: "/PurchaseListService/purchaselistitem/foodstuff/{id}" Add a HTML table to the view with the following FoodStuffFood columns: - column: FoodStuff - column: Food - column: PercentageRate The table should have the title "FoodStuffFoods" und the data must be loaded from the server with the following relative URL: "/FoodService/foodstufffood/foodstuff/{id}" 4. The FoodStuffFoodView must contain the following fields: - name: Food type: Food - name: FoodStuff type: FoodStuff - name: PercentageRate type: INT The data source for the [Food] select control should be loaded from the relative URL: "/FoodService/food" (HTTP-GET) The data source for the [FoodStuff] select control should be loaded from the relative URL: "/FoodService/foodstuff" (HTTP-GET) An existing FoodStuffFood entity should be loaded from the relative URL: "/FoodService/foodstufffood/{id}" (HTTP-GET) If a new FoodStuffFood entity has been created, the new entity should be posted to the relative URL: "/FoodService/foodstufffood" (HTTP-POST) If an existing FoodStuffFood entity has been updated, the modified entity should be sent to the relative URL: "/FoodService/foodstufffood/{id}" (HTTP-PUT) If an existing FoodStuffFood entity has to be deleted, the following relative URL should be called: "/FoodService/foodstufffood/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum