Overview
Summary
Contact
Donate
Imprint
Prompt for the
LearningTopicApp
Please create a React-JS application for the LearningTopicModule. The application has to offer the following views for the user interface: 1. ConnectionView 2. CourseTopicView 3. LearningTopicView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The ConnectionView must contain the following fields: - name: AddresseeUser type: UserAccount - name: RequestedAt type: DATE - name: RequesterUser type: UserAccount - name: RespondedAt type: DATE - name: Status type: STRING The data source for the [RequesterUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [AddresseeUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Connection entity should be loaded from the relative URL: "/LearningTopicService/connection/{id}" (HTTP-GET) If a new Connection entity has been created, the new entity should be posted to the relative URL: "/LearningTopicService/connection" (HTTP-POST) If an existing Connection entity has been updated, the modified entity should be sent to the relative URL: "/LearningTopicService/connection/{id}" (HTTP-PUT) If an existing Connection entity has to be deleted, the following relative URL should be called: "/LearningTopicService/connection/{id}" (HTTP-DELETE) 2. The CourseTopicView must contain the following fields: - name: Course type: Course - name: LearningTopic type: LearningTopic The data source for the [Course] select control should be loaded from the relative URL: "/CompanyService/course" (HTTP-GET) The data source for the [LearningTopic] select control should be loaded from the relative URL: "/LearningTopicService/learningtopic" (HTTP-GET) An existing CourseTopic entity should be loaded from the relative URL: "/LearningTopicService/coursetopic/{id}" (HTTP-GET) If a new CourseTopic entity has been created, the new entity should be posted to the relative URL: "/LearningTopicService/coursetopic" (HTTP-POST) If an existing CourseTopic entity has been updated, the modified entity should be sent to the relative URL: "/LearningTopicService/coursetopic/{id}" (HTTP-PUT) If an existing CourseTopic entity has to be deleted, the following relative URL should be called: "/LearningTopicService/coursetopic/{id}" (HTTP-DELETE) 3. The LearningTopicView must contain the following fields: - name: Description type: STRING - name: Name type: STRING - name: ParentTopic type: LONG An existing LearningTopic entity should be loaded from the relative URL: "/LearningTopicService/learningtopic/{id}" (HTTP-GET) If a new LearningTopic entity has been created, the new entity should be posted to the relative URL: "/LearningTopicService/learningtopic" (HTTP-POST) If an existing LearningTopic entity has been updated, the modified entity should be sent to the relative URL: "/LearningTopicService/learningtopic/{id}" (HTTP-PUT) If an existing LearningTopic entity has to be deleted, the following relative URL should be called: "/LearningTopicService/learningtopic/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CourseTopic columns: - column: Course - column: LearningTopic The table should have the title "CourseTopics" und the data must be loaded from the server with the following relative URL: "/LearningTopicService/coursetopic/learningtopic/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint