Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SchoolBreakApp
Please create a React-JS application for the SchoolBreakModule. The application has to offer the following views for the user interface: 1. BreakPlanEntryView 2. SchoolBreakView 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 BreakPlanEntryView must contain the following fields: - name: EntryDate type: DATE - name: SchoolBreak type: SchoolBreak - name: Teacher type: Teacher - name: BreakPlan type: BreakPlan The data source for the [BreakPlan] select control should be loaded from the relative URL: "/SchoolYearService/breakplan" (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 [SchoolBreak] select control should be loaded from the relative URL: "/SchoolBreakService/schoolbreak" (HTTP-GET) An existing BreakPlanEntry entity should be loaded from the relative URL: "/SchoolBreakService/breakplanentry/{id}" (HTTP-GET) If a new BreakPlanEntry entity has been created, the new entity should be posted to the relative URL: "/SchoolBreakService/breakplanentry" (HTTP-POST) If an existing BreakPlanEntry entity has been updated, the modified entity should be sent to the relative URL: "/SchoolBreakService/breakplanentry/{id}" (HTTP-PUT) If an existing BreakPlanEntry entity has to be deleted, the following relative URL should be called: "/SchoolBreakService/breakplanentry/{id}" (HTTP-DELETE) 2. The SchoolBreakView must contain the following fields: - name: BreakName type: STRING - name: ToTime type: DATE - name: FromTime type: DATE An existing SchoolBreak entity should be loaded from the relative URL: "/SchoolBreakService/schoolbreak/{id}" (HTTP-GET) If a new SchoolBreak entity has been created, the new entity should be posted to the relative URL: "/SchoolBreakService/schoolbreak" (HTTP-POST) If an existing SchoolBreak entity has been updated, the modified entity should be sent to the relative URL: "/SchoolBreakService/schoolbreak/{id}" (HTTP-PUT) If an existing SchoolBreak entity has to be deleted, the following relative URL should be called: "/SchoolBreakService/schoolbreak/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BreakPlanEntry columns: - column: EntryDate - column: Teacher - column: BreakPlan - column: SchoolBreak The table should have the title "BreakPlanEntrys" und the data must be loaded from the server with the following relative URL: "/SchoolBreakService/breakplanentry/schoolbreak/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum