Overview
Summary
Contact
Donate
Imprint
Prompt for the
MessageThreadApp
Please create a React-JS application for the MessageThreadModule. The application has to offer the following views for the user interface: 1. MessageView 2. MessageParticipantView 3. MessageThreadView 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 MessageView must contain the following fields: - name: Body type: STRING - name: IsDeleted type: BOOL - name: IsRead type: BOOL - name: MessageThread type: MessageThread - name: ReadAt type: DATE - name: SenderUser type: UserAccount - name: SentAt type: DATE The data source for the [SenderUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [MessageThread] select control should be loaded from the relative URL: "/MessageThreadService/messagethread" (HTTP-GET) An existing Message entity should be loaded from the relative URL: "/MessageThreadService/message/{id}" (HTTP-GET) If a new Message entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/message" (HTTP-POST) If an existing Message entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/message/{id}" (HTTP-PUT) If an existing Message entity has to be deleted, the following relative URL should be called: "/MessageThreadService/message/{id}" (HTTP-DELETE) 2. The MessageParticipantView must contain the following fields: - name: IsArchived type: BOOL - name: IsMuted type: BOOL - name: JoinedAt type: DATE - name: MessageThread type: MessageThread - name: User type: UserAccount The data source for the [User] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [MessageThread] select control should be loaded from the relative URL: "/MessageThreadService/messagethread" (HTTP-GET) An existing MessageParticipant entity should be loaded from the relative URL: "/MessageThreadService/messageparticipant/{id}" (HTTP-GET) If a new MessageParticipant entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/messageparticipant" (HTTP-POST) If an existing MessageParticipant entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/messageparticipant/{id}" (HTTP-PUT) If an existing MessageParticipant entity has to be deleted, the following relative URL should be called: "/MessageThreadService/messageparticipant/{id}" (HTTP-DELETE) 3. The MessageThreadView must contain the following fields: - name: CreatedAt type: DATE - name: Subject type: STRING An existing MessageThread entity should be loaded from the relative URL: "/MessageThreadService/messagethread/{id}" (HTTP-GET) If a new MessageThread entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/messagethread" (HTTP-POST) If an existing MessageThread entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/messagethread/{id}" (HTTP-PUT) If an existing MessageThread entity has to be deleted, the following relative URL should be called: "/MessageThreadService/messagethread/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Message columns: - column: Body - column: MessageThread - column: SentAt - column: IsRead - column: IsDeleted - column: ReadAt - column: SenderUser The table should have the title "Messages" und the data must be loaded from the server with the following relative URL: "/MessageThreadService/message/messagethread/{id}" Add a HTML table to the view with the following MessageParticipant columns: - column: IsMuted - column: MessageThread - column: User - column: JoinedAt - column: IsArchived The table should have the title "MessageParticipants" und the data must be loaded from the server with the following relative URL: "/MessageThreadService/messageparticipant/messagethread/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint