Overview
Summary
Contact
Donate
Imprint
Prompt for the
PostApp
Please create a React-JS application for the PostModule. The application has to offer the following views for the user interface: 1. PostView 2. ReactionView 3. ReactionTypeView 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 PostView must contain the following fields: - name: AuthorUser type: UserAccount - name: Body type: STRING - name: Company type: Company - name: CreatedAt type: DATE - name: IsReshare type: BOOL - name: MediaUrl type: STRING - name: OriginalPost type: LONG - name: UpdatedAt type: DATE - name: Visibility type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [AuthorUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Post entity should be loaded from the relative URL: "/PostService/post/{id}" (HTTP-GET) If a new Post entity has been created, the new entity should be posted to the relative URL: "/PostService/post" (HTTP-POST) If an existing Post entity has been updated, the modified entity should be sent to the relative URL: "/PostService/post/{id}" (HTTP-PUT) If an existing Post entity has to be deleted, the following relative URL should be called: "/PostService/post/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PostTopicAssignment columns: - column: PostTopic - column: Post The table should have the title "PostTopicAssignments" und the data must be loaded from the server with the following relative URL: "/PostTopicService/posttopicassignment/post/{id}" Add a HTML table to the view with the following Comment columns: - column: Body - column: Post - column: CreatedAt - column: ParentComment - column: AuthorUser - column: UpdatedAt - column: IsDeleted The table should have the title "Comments" und the data must be loaded from the server with the following relative URL: "/UserAccountService/comment/post/{id}" Add a HTML table to the view with the following Reaction columns: - column: Comment - column: User - column: CreatedAt - column: ReactionType - column: Post The table should have the title "Reactions" und the data must be loaded from the server with the following relative URL: "/PostService/reaction/post/{id}" 2. The ReactionView must contain the following fields: - name: Comment type: Comment - name: CreatedAt type: DATE - name: Post type: Post - name: ReactionType type: ReactionType - name: User type: UserAccount The data source for the [Comment] select control should be loaded from the relative URL: "/UserAccountService/comment" (HTTP-GET) The data source for the [ReactionType] select control should be loaded from the relative URL: "/PostService/reactiontype" (HTTP-GET) The data source for the [User] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [Post] select control should be loaded from the relative URL: "/PostService/post" (HTTP-GET) An existing Reaction entity should be loaded from the relative URL: "/PostService/reaction/{id}" (HTTP-GET) If a new Reaction entity has been created, the new entity should be posted to the relative URL: "/PostService/reaction" (HTTP-POST) If an existing Reaction entity has been updated, the modified entity should be sent to the relative URL: "/PostService/reaction/{id}" (HTTP-PUT) If an existing Reaction entity has to be deleted, the following relative URL should be called: "/PostService/reaction/{id}" (HTTP-DELETE) 3. The ReactionTypeView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing ReactionType entity should be loaded from the relative URL: "/PostService/reactiontype/{id}" (HTTP-GET) If a new ReactionType entity has been created, the new entity should be posted to the relative URL: "/PostService/reactiontype" (HTTP-POST) If an existing ReactionType entity has been updated, the modified entity should be sent to the relative URL: "/PostService/reactiontype/{id}" (HTTP-PUT) If an existing ReactionType entity has to be deleted, the following relative URL should be called: "/PostService/reactiontype/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Reaction columns: - column: Comment - column: User - column: CreatedAt - column: ReactionType - column: Post The table should have the title "Reactions" und the data must be loaded from the server with the following relative URL: "/PostService/reaction/reactiontype/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint