Overview
Summary
Contact
Donate
Imprint
Prompt for the
CommentView
Please create a React-JS view called "CommentView" for the fields of the Comment entity. The CommentView must contain the following fields: - name: AuthorUser type: UserAccount - name: Body type: STRING - name: CreatedAt type: DATE - name: IsDeleted type: BOOL - name: ParentComment type: LONG - name: Post type: Post - name: UpdatedAt type: DATE The data source for the [AuthorUser] 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 Comment entity should be loaded from the relative URL: "/UserAccountService/comment/{id}" (HTTP-GET) If a new Comment entity has been created, the new entity should be posted to the relative URL: "/UserAccountService/comment" (HTTP-POST) If an existing Comment entity has been updated, the modified entity should be sent to the relative URL: "/UserAccountService/comment/{id}" (HTTP-PUT) If an existing Comment entity has to be deleted, the following relative URL should be called: "/UserAccountService/comment/{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/comment/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint