Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SchoolSubjectApp
Please create a React-JS application for the SchoolSubjectModule. The application has to offer the following views for the user interface: 1. CourseGroupView 2. CourseGroupMemberView 3. HomeWorkView 4. SchoolSubjectView 5. TeacherLessonView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 views are defined below. 1. The CourseGroupView must contain the following fields: - name: SchoolSubject type: SchoolSubject - name: GroupName type: STRING - name: RequiredCourse type: BOOL - name: SchoolYear type: SchoolYear The data source for the [SchoolSubject] select control should be loaded from the relative URL: "/SchoolSubjectService/schoolsubject" (HTTP-GET) The data source for the [SchoolYear] select control should be loaded from the relative URL: "/SchoolYearService/schoolyear" (HTTP-GET) An existing CourseGroup entity should be loaded from the relative URL: "/SchoolSubjectService/coursegroup/{id}" (HTTP-GET) If a new CourseGroup entity has been created, the new entity should be posted to the relative URL: "/SchoolSubjectService/coursegroup" (HTTP-POST) If an existing CourseGroup entity has been updated, the modified entity should be sent to the relative URL: "/SchoolSubjectService/coursegroup/{id}" (HTTP-PUT) If an existing CourseGroup entity has to be deleted, the following relative URL should be called: "/SchoolSubjectService/coursegroup/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CourseGroupMember columns: - column: Student - column: CourseGroup The table should have the title "CourseGroupMembers" und the data must be loaded from the server with the following relative URL: "/SchoolSubjectService/coursegroupmember/coursegroup/{id}" Add a HTML table to the view with the following TeachingUnit columns: - column: RowIndex - column: SchoolSubject - column: Room - column: SchoolYear - column: CourseGroup - column: SchoolClass - column: ColumnIndex - column: Teacher The table should have the title "TeachingUnits" und the data must be loaded from the server with the following relative URL: "/SchoolYearService/teachingunit/coursegroup/{id}" 2. The CourseGroupMemberView must contain the following fields: - name: CourseGroup type: CourseGroup - name: Student type: Student The data source for the [CourseGroup] select control should be loaded from the relative URL: "/SchoolSubjectService/coursegroup" (HTTP-GET) The data source for the [Student] select control should be loaded from the relative URL: "/StudentService/student" (HTTP-GET) An existing CourseGroupMember entity should be loaded from the relative URL: "/SchoolSubjectService/coursegroupmember/{id}" (HTTP-GET) If a new CourseGroupMember entity has been created, the new entity should be posted to the relative URL: "/SchoolSubjectService/coursegroupmember" (HTTP-POST) If an existing CourseGroupMember entity has been updated, the modified entity should be sent to the relative URL: "/SchoolSubjectService/coursegroupmember/{id}" (HTTP-PUT) If an existing CourseGroupMember entity has to be deleted, the following relative URL should be called: "/SchoolSubjectService/coursegroupmember/{id}" (HTTP-DELETE) 3. The HomeWorkView must contain the following fields: - name: DeadLine type: DATE - name: Description type: STRING - name: WorkDate type: DATE - name: Done type: BOOL - name: Schoolsubject type: SchoolSubject - name: SchoolClass type: SchoolClass - name: Grade type: INT - name: Student type: Student - name: Subject type: STRING The data source for the [SchoolClass] select control should be loaded from the relative URL: "/SchoolYearService/schoolclass" (HTTP-GET) The data source for the [Schoolsubject] select control should be loaded from the relative URL: "/SchoolSubjectService/schoolsubject" (HTTP-GET) The data source for the [Student] select control should be loaded from the relative URL: "/StudentService/student" (HTTP-GET) An existing HomeWork entity should be loaded from the relative URL: "/SchoolSubjectService/homework/{id}" (HTTP-GET) If a new HomeWork entity has been created, the new entity should be posted to the relative URL: "/SchoolSubjectService/homework" (HTTP-POST) If an existing HomeWork entity has been updated, the modified entity should be sent to the relative URL: "/SchoolSubjectService/homework/{id}" (HTTP-PUT) If an existing HomeWork entity has to be deleted, the following relative URL should be called: "/SchoolSubjectService/homework/{id}" (HTTP-DELETE) 4. The SchoolSubjectView must contain the following fields: - name: AgeGroup type: AgeGroup - name: SubjectName type: STRING The data source for the [AgeGroup] select control should be loaded from the relative URL: "/AgeGroupService/agegroup" (HTTP-GET) An existing SchoolSubject entity should be loaded from the relative URL: "/SchoolSubjectService/schoolsubject/{id}" (HTTP-GET) If a new SchoolSubject entity has been created, the new entity should be posted to the relative URL: "/SchoolSubjectService/schoolsubject" (HTTP-POST) If an existing SchoolSubject entity has been updated, the modified entity should be sent to the relative URL: "/SchoolSubjectService/schoolsubject/{id}" (HTTP-PUT) If an existing SchoolSubject entity has to be deleted, the following relative URL should be called: "/SchoolSubjectService/schoolsubject/{id}" (HTTP-DELETE) Add a HTML table to the view with the following HomeWork columns: - column: Schoolsubject - column: WorkDate - column: Description - column: DeadLine - column: Grade - column: SchoolClass - column: Done - column: Subject - column: Student The table should have the title "HomeWorks" und the data must be loaded from the server with the following relative URL: "/SchoolSubjectService/homework/schoolsubject/{id}" Add a HTML table to the view with the following CourseGroup columns: - column: SchoolYear - column: RequiredCourse - column: SchoolSubject - column: GroupName The table should have the title "CourseGroups" und the data must be loaded from the server with the following relative URL: "/SchoolSubjectService/coursegroup/schoolsubject/{id}" Add a HTML table to the view with the following CurriculumEntry columns: - column: SchoolSubject - column: Curriculum - column: LessonCount - column: SchoolYear The table should have the title "CurriculumEntrys" und the data must be loaded from the server with the following relative URL: "/SchoolYearService/curriculumentry/schoolsubject/{id}" Add a HTML table to the view with the following SchoolSubjectClass columns: - column: SchoolSubject - column: SchoolClass The table should have the title "SchoolSubjectClasss" und the data must be loaded from the server with the following relative URL: "/SchoolSubjectClassService/schoolsubjectclass/schoolsubject/{id}" Add a HTML table to the view with the following Lesson columns: - column: Teacher - column: SchoolSubject - column: LessonContent - column: SchoolClass - column: LessonDate The table should have the title "Lessons" und the data must be loaded from the server with the following relative URL: "/LessonService/lesson/schoolsubject/{id}" Add a HTML table to the view with the following TeachingUnit columns: - column: RowIndex - column: SchoolSubject - column: Room - column: SchoolYear - column: CourseGroup - column: SchoolClass - column: ColumnIndex - column: Teacher The table should have the title "TeachingUnits" und the data must be loaded from the server with the following relative URL: "/SchoolYearService/teachingunit/schoolsubject/{id}" 5. The TeacherLessonView must contain the following fields: - name: Teacher type: Teacher - name: SchoolYear type: SchoolYear - name: LessonCount type: INT The data source for the [Teacher] select control should be loaded from the relative URL: "/StudentService/teacher" (HTTP-GET) The data source for the [SchoolYear] select control should be loaded from the relative URL: "/SchoolYearService/schoolyear" (HTTP-GET) An existing TeacherLesson entity should be loaded from the relative URL: "/SchoolSubjectService/teacherlesson/{id}" (HTTP-GET) If a new TeacherLesson entity has been created, the new entity should be posted to the relative URL: "/SchoolSubjectService/teacherlesson" (HTTP-POST) If an existing TeacherLesson entity has been updated, the modified entity should be sent to the relative URL: "/SchoolSubjectService/teacherlesson/{id}" (HTTP-PUT) If an existing TeacherLesson entity has to be deleted, the following relative URL should be called: "/SchoolSubjectService/teacherlesson/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum