Overview
Summary
Contact
Donate
Imprint
Prompt for the
UserSessionView
Please create a React-JS view called "UserSessionView" for the fields of the UserSession entity. The UserSessionView must contain the following fields: - name: CreatedAt type: DATE - name: Device type: Device - name: ExpiresAt type: DATE - name: IpAddress type: STRING - name: RevokedAt type: DATE - name: User type: User - name: UserAgent type: STRING 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) An existing UserSession entity should be loaded from the relative URL: "/DeviceService/usersession/{id}" (HTTP-GET) If a new UserSession entity has been created, the new entity should be posted to the relative URL: "/DeviceService/usersession" (HTTP-POST) If an existing UserSession entity has been updated, the modified entity should be sent to the relative URL: "/DeviceService/usersession/{id}" (HTTP-PUT) If an existing UserSession entity has to be deleted, the following relative URL should be called: "/DeviceService/usersession/{id}" (HTTP-DELETE) 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/session/{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/session/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint