Overview
Summary
Contact
Donate
Imprint
Prompt for the
VideoApp
Please create a React-JS application for the VideoModule. The application has to offer the following views for the user interface: 1. TagView 2. VideoView 3. VideoLikeView 4. VideoReportView 5. VideoTagView 6. WatchHistoryView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 6 views are defined below. 1. The TagView must contain the following fields: - name: Name type: STRING An existing Tag entity should be loaded from the relative URL: "/VideoService/tag/{id}" (HTTP-GET) If a new Tag entity has been created, the new entity should be posted to the relative URL: "/VideoService/tag" (HTTP-POST) If an existing Tag entity has been updated, the modified entity should be sent to the relative URL: "/VideoService/tag/{id}" (HTTP-PUT) If an existing Tag entity has to be deleted, the following relative URL should be called: "/VideoService/tag/{id}" (HTTP-DELETE) Add a HTML table to the view with the following VideoTag columns: - column: Video - column: Tag The table should have the title "VideoTags" und the data must be loaded from the server with the following relative URL: "/VideoService/videotag/tag/{id}" 2. The VideoView must contain the following fields: - name: Category type: Category - name: Channel type: Channel - name: CommentCountCached type: LONG - name: CreatedAt type: DATE - name: DefaultCaptionLanguage type: STRING - name: Description type: STRING - name: DurationSeconds type: LONG - name: FilePathOrStorageKey type: STRING - name: FrameRate type: DOUBLE - name: Language type: STRING - name: LicenseType type: STRING - name: LikeCountCached type: LONG - name: MadeForKids type: BOOL - name: OriginalFileName type: STRING - name: PrivacyStatus type: STRING - name: PublishedAt type: DATE - name: ResolutionHeight type: LONG - name: ResolutionWidth type: LONG - name: Status type: STRING - name: ThumbnailDefault type: STRING - name: ThumbnailHigh type: STRING - name: ThumbnailMedium type: STRING - name: Title type: STRING - name: UpdatedAt type: DATE - name: ViewCountCached type: LONG - name: VisibilityRegionRestrictionJson type: STRING The data source for the [Category] select control should be loaded from the relative URL: "/AdService/category" (HTTP-GET) The data source for the [Channel] select control should be loaded from the relative URL: "/ChannelService/channel" (HTTP-GET) An existing Video entity should be loaded from the relative URL: "/VideoService/video/{id}" (HTTP-GET) If a new Video entity has been created, the new entity should be posted to the relative URL: "/VideoService/video" (HTTP-POST) If an existing Video entity has been updated, the modified entity should be sent to the relative URL: "/VideoService/video/{id}" (HTTP-PUT) If an existing Video entity has to be deleted, the following relative URL should be called: "/VideoService/video/{id}" (HTTP-DELETE) Add a HTML table to the view with the following VideoLike columns: - column: Video - column: Type - column: CreatedAt - column: User The table should have the title "VideoLikes" und the data must be loaded from the server with the following relative URL: "/VideoService/videolike/video/{id}" Add a HTML table to the view with the following Comment columns: - column: CreatedAt - column: Video - column: User - column: UpdatedAt - column: LikeCountCached - column: ParentComment - column: Text - column: Status - column: IsEdited - column: IsPinned The table should have the title "Comments" und the data must be loaded from the server with the following relative URL: "/CommentService/comment/video/{id}" Add a HTML table to the view with the following LiveStream columns: - column: Description - column: Title - column: ActualEndAt - column: Channel - column: CreatedAt - column: Status - column: ConcurrentViewersPeak - column: ScheduledStartAt - column: Video - column: ActualStartAt The table should have the title "LiveStreams" und the data must be loaded from the server with the following relative URL: "/LiveStreamService/livestream/video/{id}" Add a HTML table to the view with the following VideoAd columns: - column: Video - column: Ad - column: CreatedAt - column: Position - column: InsertTimeSeconds The table should have the title "VideoAds" und the data must be loaded from the server with the following relative URL: "/AdService/videoad/video/{id}" Add a HTML table to the view with the following Caption columns: - column: Format - column: Language - column: IsAutoGenerated - column: Name - column: CreatedAt - column: Video - column: StorageKey - column: UpdatedAt The table should have the title "Captions" und the data must be loaded from the server with the following relative URL: "/CommentService/caption/video/{id}" Add a HTML table to the view with the following PlaylistVideo columns: - column: Playlist - column: AddedByUser - column: Video - column: AddedAt - column: Position The table should have the title "PlaylistVideos" und the data must be loaded from the server with the following relative URL: "/PlaylistService/playlistvideo/video/{id}" Add a HTML table to the view with the following Thumbnail columns: - column: Width - column: Video - column: Url - column: QualityLabel - column: CreatedAt - column: Height The table should have the title "Thumbnails" und the data must be loaded from the server with the following relative URL: "/CommentService/thumbnail/video/{id}" Add a HTML table to the view with the following WatchLater columns: - column: AddedAt - column: User - column: Video The table should have the title "WatchLaters" und the data must be loaded from the server with the following relative URL: "/UserService/watchlater/video/{id}" Add a HTML table to the view with the following AdImpression columns: - column: Video - column: Ad - column: RevenueMicros - column: ClickedAt - column: User - column: ImpressionAt - column: Device The table should have the title "AdImpressions" und the data must be loaded from the server with the following relative URL: "/UserService/adimpression/video/{id}" Add a HTML table to the view with the following UserFavorite columns: - column: Video - column: User - column: CreatedAt The table should have the title "UserFavorites" und the data must be loaded from the server with the following relative URL: "/DeviceService/userfavorite/video/{id}" Add a HTML table to the view with the following WatchHistory columns: - column: WatchTimeSeconds - column: Device - column: Video - column: ProgressPercent - column: IsAutoplay - column: WatchedAt - column: User - column: Session The table should have the title "WatchHistorys" und the data must be loaded from the server with the following relative URL: "/VideoService/watchhistory/video/{id}" Add a HTML table to the view with the following VideoReport columns: - column: CreatedAt - column: ResolvedByUser - column: ResolvedAt - column: ReasonCode - column: Description - column: ReporterUser - column: Video - column: Status The table should have the title "VideoReports" und the data must be loaded from the server with the following relative URL: "/VideoService/videoreport/video/{id}" Add a HTML table to the view with the following UserFeedItem columns: - column: ShownAt - column: Video - column: RankScore - column: Channel - column: User - column: ClickedAt - column: ItemType The table should have the title "UserFeedItems" und the data must be loaded from the server with the following relative URL: "/ChannelService/userfeeditem/video/{id}" Add a HTML table to the view with the following VideoView columns: - column: WatchedAt - column: WatchTimeSeconds - column: IsUniqueSession - column: Country - column: Device - column: Video - column: Session - column: User - column: ReferrerType The table should have the title "VideoViews" und the data must be loaded from the server with the following relative URL: "/DeviceService/videoview/video/{id}" Add a HTML table to the view with the following DailyVideoMetric columns: - column: DislikeCount - column: ShareCount - column: CommentCount - column: LikeCount - column: WatchTimeSeconds - column: Date - column: UniqueViewerCountApprox - column: RevenueMicros - column: Video - column: ViewCount The table should have the title "DailyVideoMetrics" und the data must be loaded from the server with the following relative URL: "/PlaylistService/dailyvideometric/video/{id}" Add a HTML table to the view with the following VideoTag columns: - column: Video - column: Tag The table should have the title "VideoTags" und the data must be loaded from the server with the following relative URL: "/VideoService/videotag/video/{id}" 3. The VideoLikeView must contain the following fields: - name: CreatedAt type: DATE - name: Type type: STRING - name: User type: User - name: Video type: Video The data source for the [User] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) The data source for the [Video] select control should be loaded from the relative URL: "/VideoService/video" (HTTP-GET) An existing VideoLike entity should be loaded from the relative URL: "/VideoService/videolike/{id}" (HTTP-GET) If a new VideoLike entity has been created, the new entity should be posted to the relative URL: "/VideoService/videolike" (HTTP-POST) If an existing VideoLike entity has been updated, the modified entity should be sent to the relative URL: "/VideoService/videolike/{id}" (HTTP-PUT) If an existing VideoLike entity has to be deleted, the following relative URL should be called: "/VideoService/videolike/{id}" (HTTP-DELETE) 4. The VideoReportView must contain the following fields: - name: CreatedAt type: DATE - name: Description type: STRING - name: ReasonCode type: STRING - name: ReporterUser type: User - name: ResolvedAt type: DATE - name: ResolvedByUser type: User - name: Status 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 [ResolvedByUser] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) The data source for the [ReporterUser] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) An existing VideoReport entity should be loaded from the relative URL: "/VideoService/videoreport/{id}" (HTTP-GET) If a new VideoReport entity has been created, the new entity should be posted to the relative URL: "/VideoService/videoreport" (HTTP-POST) If an existing VideoReport entity has been updated, the modified entity should be sent to the relative URL: "/VideoService/videoreport/{id}" (HTTP-PUT) If an existing VideoReport entity has to be deleted, the following relative URL should be called: "/VideoService/videoreport/{id}" (HTTP-DELETE) 5. The VideoTagView must contain the following fields: - name: Tag type: Tag - 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 [Tag] select control should be loaded from the relative URL: "/VideoService/tag" (HTTP-GET) An existing VideoTag entity should be loaded from the relative URL: "/VideoService/videotag/{id}" (HTTP-GET) If a new VideoTag entity has been created, the new entity should be posted to the relative URL: "/VideoService/videotag" (HTTP-POST) If an existing VideoTag entity has been updated, the modified entity should be sent to the relative URL: "/VideoService/videotag/{id}" (HTTP-PUT) If an existing VideoTag entity has to be deleted, the following relative URL should be called: "/VideoService/videotag/{id}" (HTTP-DELETE) 6. The WatchHistoryView must contain the following fields: - name: Device type: Device - name: IsAutoplay type: BOOL - name: ProgressPercent type: DOUBLE - name: Session type: UserSession - name: User type: User - name: Video type: Video - name: WatchedAt type: DATE - name: WatchTimeSeconds type: LONG The data source for the [User] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) The data source for the [Device] select control should be loaded from the relative URL: "/DeviceService/device" (HTTP-GET) The data source for the [Video] select control should be loaded from the relative URL: "/VideoService/video" (HTTP-GET) The data source for the [Session] select control should be loaded from the relative URL: "/DeviceService/usersession" (HTTP-GET) An existing WatchHistory entity should be loaded from the relative URL: "/VideoService/watchhistory/{id}" (HTTP-GET) If a new WatchHistory entity has been created, the new entity should be posted to the relative URL: "/VideoService/watchhistory" (HTTP-POST) If an existing WatchHistory entity has been updated, the modified entity should be sent to the relative URL: "/VideoService/watchhistory/{id}" (HTTP-PUT) If an existing WatchHistory entity has to be deleted, the following relative URL should be called: "/VideoService/watchhistory/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint