Overview
Summary
Contact
Donate
Imprint
Prompt for the
DirectMessageConversationApp
Please create a React-JS application for the DirectMessageConversationModule. The application has to offer the following views for the user interface: 1. DirectMessageView 2. DirectMessageConversationView 3. FollowView 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 DirectMessageView must contain the following fields: - name: Content type: STRING - name: Conversation type: DirectMessageConversation - name: CreatedAt type: STRING - name: IsDeleted type: BOOL - name: SenderUser type: UserAccount The data source for the [SenderUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [Conversation] select control should be loaded from the relative URL: "/DirectMessageConversationService/directmessageconversation" (HTTP-GET) An existing DirectMessage entity should be loaded from the relative URL: "/DirectMessageConversationService/directmessage/{id}" (HTTP-GET) If a new DirectMessage entity has been created, the new entity should be posted to the relative URL: "/DirectMessageConversationService/directmessage" (HTTP-POST) If an existing DirectMessage entity has been updated, the modified entity should be sent to the relative URL: "/DirectMessageConversationService/directmessage/{id}" (HTTP-PUT) If an existing DirectMessage entity has to be deleted, the following relative URL should be called: "/DirectMessageConversationService/directmessage/{id}" (HTTP-DELETE) 2. The DirectMessageConversationView must contain the following fields: - name: CreatedAt type: STRING - name: CreatorUser type: UserAccount - name: IsGroup type: BOOL The data source for the [CreatorUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing DirectMessageConversation entity should be loaded from the relative URL: "/DirectMessageConversationService/directmessageconversation/{id}" (HTTP-GET) If a new DirectMessageConversation entity has been created, the new entity should be posted to the relative URL: "/DirectMessageConversationService/directmessageconversation" (HTTP-POST) If an existing DirectMessageConversation entity has been updated, the modified entity should be sent to the relative URL: "/DirectMessageConversationService/directmessageconversation/{id}" (HTTP-PUT) If an existing DirectMessageConversation entity has to be deleted, the following relative URL should be called: "/DirectMessageConversationService/directmessageconversation/{id}" (HTTP-DELETE) Add a HTML table to the view with the following DirectMessage columns: - column: SenderUser - column: CreatedAt - column: IsDeleted - column: Conversation - column: Content The table should have the title "DirectMessages" und the data must be loaded from the server with the following relative URL: "/DirectMessageConversationService/directmessage/conversation/{id}" 3. The FollowView must contain the following fields: - name: CreatedAt type: STRING - name: FollowedUser type: UserAccount - name: FollowerUser type: UserAccount - name: IsBlocked type: BOOL - name: IsMuted type: BOOL - name: IsNotificationsEnabled type: BOOL The data source for the [FollowedUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [FollowerUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Follow entity should be loaded from the relative URL: "/DirectMessageConversationService/follow/{id}" (HTTP-GET) If a new Follow entity has been created, the new entity should be posted to the relative URL: "/DirectMessageConversationService/follow" (HTTP-POST) If an existing Follow entity has been updated, the modified entity should be sent to the relative URL: "/DirectMessageConversationService/follow/{id}" (HTTP-PUT) If an existing Follow entity has to be deleted, the following relative URL should be called: "/DirectMessageConversationService/follow/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint