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