Overview
Summary
Contact
Donate
Imprint
Prompt for the
LiveStreamApp
Please create a React-JS application for the LiveStreamModule. The application has to offer the following views for the user interface: 1. BlockedUserView 2. LiveChatMessageView 3. LiveStreamView 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 BlockedUserView must contain the following fields: - name: BlockedUser type: User - name: BlockerUser type: User - name: CreatedAt type: DATE The data source for the [BlockerUser] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) The data source for the [BlockedUser] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) An existing BlockedUser entity should be loaded from the relative URL: "/LiveStreamService/blockeduser/{id}" (HTTP-GET) If a new BlockedUser entity has been created, the new entity should be posted to the relative URL: "/LiveStreamService/blockeduser" (HTTP-POST) If an existing BlockedUser entity has been updated, the modified entity should be sent to the relative URL: "/LiveStreamService/blockeduser/{id}" (HTTP-PUT) If an existing BlockedUser entity has to be deleted, the following relative URL should be called: "/LiveStreamService/blockeduser/{id}" (HTTP-DELETE) 2. The LiveChatMessageView must contain the following fields: - name: CreatedAt type: DATE - name: Currency type: STRING - name: IsDeleted type: BOOL - name: LiveStream type: LiveStream - name: MessageText type: STRING - name: SuperChatAmount type: DOUBLE - name: User type: User The data source for the [User] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) The data source for the [LiveStream] select control should be loaded from the relative URL: "/LiveStreamService/livestream" (HTTP-GET) An existing LiveChatMessage entity should be loaded from the relative URL: "/LiveStreamService/livechatmessage/{id}" (HTTP-GET) If a new LiveChatMessage entity has been created, the new entity should be posted to the relative URL: "/LiveStreamService/livechatmessage" (HTTP-POST) If an existing LiveChatMessage entity has been updated, the modified entity should be sent to the relative URL: "/LiveStreamService/livechatmessage/{id}" (HTTP-PUT) If an existing LiveChatMessage entity has to be deleted, the following relative URL should be called: "/LiveStreamService/livechatmessage/{id}" (HTTP-DELETE) 3. The LiveStreamView must contain the following fields: - name: ActualEndAt type: DATE - name: ActualStartAt type: DATE - name: Channel type: Channel - name: ConcurrentViewersPeak type: LONG - name: CreatedAt type: DATE - name: Description type: STRING - name: ScheduledStartAt type: DATE - name: Status type: STRING - name: Title type: STRING - name: Video type: Video The data source for the [Video] select control should be loaded from the relative URL: "/VideoService/video" (HTTP-GET) The data source for the [Channel] select control should be loaded from the relative URL: "/ChannelService/channel" (HTTP-GET) An existing LiveStream entity should be loaded from the relative URL: "/LiveStreamService/livestream/{id}" (HTTP-GET) If a new LiveStream entity has been created, the new entity should be posted to the relative URL: "/LiveStreamService/livestream" (HTTP-POST) If an existing LiveStream entity has been updated, the modified entity should be sent to the relative URL: "/LiveStreamService/livestream/{id}" (HTTP-PUT) If an existing LiveStream entity has to be deleted, the following relative URL should be called: "/LiveStreamService/livestream/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LiveChatMessage columns: - column: CreatedAt - column: Currency - column: LiveStream - column: MessageText - column: User - column: IsDeleted - column: SuperChatAmount The table should have the title "LiveChatMessages" und the data must be loaded from the server with the following relative URL: "/LiveStreamService/livechatmessage/livestream/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint