Overview
Summary
Contact
Donate
Imprint
Prompt for the
MessageView
Please create a React-JS view called "MessageView" for the fields of the Message entity. The MessageView must contain the following fields: - name: AuthorUser type: UserAccount - name: Channel type: Channel - name: Content type: STRING - name: CreatedAt type: DATE - name: EditedAt type: DATE - name: IsPinned type: BOOL - name: ReplyToMessage type: LONG The data source for the [AuthorUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [Channel] select control should be loaded from the relative URL: "/UserAccountService/channel" (HTTP-GET) An existing Message entity should be loaded from the relative URL: "/UserAccountService/message/{id}" (HTTP-GET) If a new Message entity has been created, the new entity should be posted to the relative URL: "/UserAccountService/message" (HTTP-POST) If an existing Message entity has been updated, the modified entity should be sent to the relative URL: "/UserAccountService/message/{id}" (HTTP-PUT) If an existing Message entity has to be deleted, the following relative URL should be called: "/UserAccountService/message/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Reaction columns: - column: Message - column: User - column: CreatedAt - column: Emoji The table should have the title "Reactions" und the data must be loaded from the server with the following relative URL: "/VoiceSessionService/reaction/message/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint