Overview
Summary
Contact
Donate
Imprint
Prompt for the
PostView
Please create a React-JS view called "PostView" for the fields of the Post entity. 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}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint