Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
LessonApp
Please create a React-JS application for the LessonModule. The application has to offer the following views for the user interface: 1. LessonView 2. LessonMaterialView 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 LessonView must contain the following fields: - name: LessonDate type: DATE - name: SchoolSubject type: SchoolSubject - name: LessonContent type: STRING - name: Teacher type: Teacher - name: SchoolClass type: SchoolClass The data source for the [SchoolSubject] select control should be loaded from the relative URL: "/SchoolSubjectService/schoolsubject" (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 [SchoolClass] select control should be loaded from the relative URL: "/SchoolYearService/schoolclass" (HTTP-GET) An existing Lesson entity should be loaded from the relative URL: "/LessonService/lesson/{id}" (HTTP-GET) If a new Lesson entity has been created, the new entity should be posted to the relative URL: "/LessonService/lesson" (HTTP-POST) If an existing Lesson entity has been updated, the modified entity should be sent to the relative URL: "/LessonService/lesson/{id}" (HTTP-PUT) If an existing Lesson entity has to be deleted, the following relative URL should be called: "/LessonService/lesson/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LessonMaterial columns: - column: Lesson - column: InternetURL - column: Description The table should have the title "LessonMaterials" und the data must be loaded from the server with the following relative URL: "/LessonService/lessonmaterial/lesson/{id}" 2. The LessonMaterialView must contain the following fields: - name: Description type: STRING - name: InternetURL type: STRING - name: Lesson type: Lesson The data source for the [Lesson] select control should be loaded from the relative URL: "/LessonService/lesson" (HTTP-GET) An existing LessonMaterial entity should be loaded from the relative URL: "/LessonService/lessonmaterial/{id}" (HTTP-GET) If a new LessonMaterial entity has been created, the new entity should be posted to the relative URL: "/LessonService/lessonmaterial" (HTTP-POST) If an existing LessonMaterial entity has been updated, the modified entity should be sent to the relative URL: "/LessonService/lessonmaterial/{id}" (HTTP-PUT) If an existing LessonMaterial entity has to be deleted, the following relative URL should be called: "/LessonService/lessonmaterial/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum