Overview
Summary
Contact
Donate
Imprint
Prompt for the
MediaFileView
Please create a React-JS view called "MediaFileView" for the fields of the MediaFile entity. The MediaFileView must contain the following fields: - name: Checksum type: STRING - name: CreatedAt type: DATE - name: FileName type: STRING - name: IsEncrypted type: BOOL - name: MimeType type: STRING - name: SizeBytes type: LONG - name: StoragePath type: STRING An existing MediaFile entity should be loaded from the relative URL: "/MediaFileService/mediafile/{id}" (HTTP-GET) If a new MediaFile entity has been created, the new entity should be posted to the relative URL: "/MediaFileService/mediafile" (HTTP-POST) If an existing MediaFile entity has been updated, the modified entity should be sent to the relative URL: "/MediaFileService/mediafile/{id}" (HTTP-PUT) If an existing MediaFile entity has to be deleted, the following relative URL should be called: "/MediaFileService/mediafile/{id}" (HTTP-DELETE) Add a HTML table to the view with the following UserAvatar columns: - column: UserAccount - column: RenderedMediaFile - column: CreatedAt - column: StyleJson - column: UpdatedAt The table should have the title "UserAvatars" und the data must be loaded from the server with the following relative URL: "/UserAccountService/useravatar/renderedmediafile/{id}" Add a HTML table to the view with the following StatusUpdate columns: - column: VoiceNoteMediaFile - column: CreatedAt - column: ExpiresAt - column: TextContent - column: VisibilityScope - column: UserAccount - column: MediaFile - column: StatusType The table should have the title "StatusUpdates" und the data must be loaded from the server with the following relative URL: "/MediaFileService/statusupdate/mediafile/{id}" Add a HTML table to the view with the following StatusUpdate columns: - column: VoiceNoteMediaFile - column: CreatedAt - column: ExpiresAt - column: TextContent - column: VisibilityScope - column: UserAccount - column: MediaFile - column: StatusType The table should have the title "StatusUpdates" und the data must be loaded from the server with the following relative URL: "/MediaFileService/statusupdate/voicenotemediafile/{id}" Add a HTML table to the view with the following MessageMedia columns: - column: DurationSeconds - column: MediaType - column: MediaFile - column: ThumbnailMediaFile - column: Caption - column: Width - column: Height - column: ChatMessage The table should have the title "MessageMedias" und the data must be loaded from the server with the following relative URL: "/ChatMessageService/messagemedia/mediafile/{id}" Add a HTML table to the view with the following MessageMedia columns: - column: DurationSeconds - column: MediaType - column: MediaFile - column: ThumbnailMediaFile - column: Caption - column: Width - column: Height - column: ChatMessage The table should have the title "MessageMedias" und the data must be loaded from the server with the following relative URL: "/ChatMessageService/messagemedia/thumbnailmediafile/{id}" Add a HTML table to the view with the following Sticker columns: - column: StickerPack - column: CreatedAt - column: MediaFile - column: EmojiHint The table should have the title "Stickers" und the data must be loaded from the server with the following relative URL: "/MediaFileService/sticker/mediafile/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint