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. MessageThreadView 3. UserIdentityDocumentView 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: IsSystemMessage type: BOOL - name: MessageThread type: MessageThread - name: MessageType type: STRING - name: Sender type: LONG - name: SentAt type: DATE 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 MessageThreadView must contain the following fields: - name: CreatedAt type: DATE - name: Listing type: Listing The data source for the [Listing] select control should be loaded from the relative URL: "/ListingService/listing" (HTTP-GET) 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: MessageType - column: Sender - column: SentAt - column: IsSystemMessage - column: Body - column: MessageThread 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}" 3. The UserIdentityDocumentView must contain the following fields: - name: CreatedAt type: DATE - name: DocumentNumber type: STRING - name: DocumentType type: STRING - name: ExpiryDate type: DATE - name: IssuingCountry type: LONG - name: PlatformUser type: PlatformUser - name: VerificationStatus type: STRING The data source for the [PlatformUser] select control should be loaded from the relative URL: "/PlatformUserService/platformuser" (HTTP-GET) An existing UserIdentityDocument entity should be loaded from the relative URL: "/MessageThreadService/useridentitydocument/{id}" (HTTP-GET) If a new UserIdentityDocument entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/useridentitydocument" (HTTP-POST) If an existing UserIdentityDocument entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/useridentitydocument/{id}" (HTTP-PUT) If an existing UserIdentityDocument entity has to be deleted, the following relative URL should be called: "/MessageThreadService/useridentitydocument/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint