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: CreatedAt type: DATE - name: IsDeleted type: BOOL - name: IsPinned type: BOOL - name: ParentComment type: LONG - name: Post type: Post - name: Text type: STRING - name: UpdatedAt type: DATE - name: UserAccount type: UserAccount The data source for the [Post] select control should be loaded from the relative URL: "/UserAccountService/post" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Comment entity should be loaded from the relative URL: "/StoryService/comment/{id}" (HTTP-GET) If a new Comment entity has been created, the new entity should be posted to the relative URL: "/StoryService/comment" (HTTP-POST) If an existing Comment entity has been updated, the modified entity should be sent to the relative URL: "/StoryService/comment/{id}" (HTTP-PUT) If an existing Comment entity has to be deleted, the following relative URL should be called: "/StoryService/comment/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CommentLike columns: - column: CreatedAt - column: Comment - column: UserAccount The table should have the title "CommentLikes" und the data must be loaded from the server with the following relative URL: "/UserAccountService/commentlike/comment/{id}" Add a HTML table to the view with the following Notification columns: - column: Post - column: Story - column: SourceUser - column: Reel - column: Type - column: Comment - column: DirectMessage - column: IsRead - column: CreatedAt - column: UserAccount The table should have the title "Notifications" und the data must be loaded from the server with the following relative URL: "/ReelService/notification/comment/{id}" Add a HTML table to the view with the following Report columns: - column: ReportedUser - column: Reporter - column: Post - column: CreatedAt - column: Reel - column: Comment - column: Story - column: Status - column: Reason - column: Details - column: UpdatedAt The table should have the title "Reports" und the data must be loaded from the server with the following relative URL: "/StoryService/report/comment/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint