openapi: 3.0.3 info: title: Your Project API version: 1.0.0 description: Your project description paths: /v1/youtube-events/: get: operationId: youtube_events_list tags: - youtube-events security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/YouTubeEvent' description: '' post: operationId: youtube_events_create tags: - youtube-events requestBody: content: application/json: schema: $ref: '#/components/schemas/YouTubeEvent' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/YouTubeEvent' multipart/form-data: schema: $ref: '#/components/schemas/YouTubeEvent' required: true security: - cookieAuth: [] - basicAuth: [] - {} responses: '201': content: application/json: schema: $ref: '#/components/schemas/YouTubeEvent' description: '' /v1/youtube-events/{id}/: get: operationId: youtube_events_retrieve parameters: - in: path name: id schema: type: string format: uuid description: A UUID string identifying this you tube event. required: true tags: - youtube-events security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/YouTubeEvent' description: '' put: operationId: youtube_events_update parameters: - in: path name: id schema: type: string format: uuid description: A UUID string identifying this you tube event. required: true tags: - youtube-events requestBody: content: application/json: schema: $ref: '#/components/schemas/YouTubeEvent' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/YouTubeEvent' multipart/form-data: schema: $ref: '#/components/schemas/YouTubeEvent' required: true security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/YouTubeEvent' description: '' patch: operationId: youtube_events_partial_update parameters: - in: path name: id schema: type: string format: uuid description: A UUID string identifying this you tube event. required: true tags: - youtube-events requestBody: content: application/json: schema: $ref: '#/components/schemas/PatchedYouTubeEvent' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PatchedYouTubeEvent' multipart/form-data: schema: $ref: '#/components/schemas/PatchedYouTubeEvent' security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/YouTubeEvent' description: '' delete: operationId: youtube_events_destroy parameters: - in: path name: id schema: type: string format: uuid description: A UUID string identifying this you tube event. required: true tags: - youtube-events security: - cookieAuth: [] - basicAuth: [] - {} responses: '204': description: No response body /v1/youtube-time-watched/: get: operationId: youtube_time_watched_list tags: - youtube-time-watched security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/YoutubeVideoTimeWatched' description: '' post: operationId: youtube_time_watched_create tags: - youtube-time-watched requestBody: content: application/json: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' multipart/form-data: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' required: true security: - cookieAuth: [] - basicAuth: [] - {} responses: '201': content: application/json: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' description: '' /v1/youtube-time-watched/{id}/: get: operationId: youtube_time_watched_retrieve parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this youtube video time watched. required: true tags: - youtube-time-watched security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' description: '' put: operationId: youtube_time_watched_update parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this youtube video time watched. required: true tags: - youtube-time-watched requestBody: content: application/json: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' multipart/form-data: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' required: true security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' description: '' patch: operationId: youtube_time_watched_partial_update parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this youtube video time watched. required: true tags: - youtube-time-watched requestBody: content: application/json: schema: $ref: '#/components/schemas/PatchedYoutubeVideoTimeWatched' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PatchedYoutubeVideoTimeWatched' multipart/form-data: schema: $ref: '#/components/schemas/PatchedYoutubeVideoTimeWatched' security: - cookieAuth: [] - basicAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/YoutubeVideoTimeWatched' description: '' delete: operationId: youtube_time_watched_destroy parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this youtube video time watched. required: true tags: - youtube-time-watched security: - cookieAuth: [] - basicAuth: [] - {} responses: '204': description: No response body components: schemas: ErrorCodeEnum: enum: - 2 - 5 - 100 - 101 - 150 type: integer description: |- * `2` - Invalid parameter value * `5` - The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred * `100` - The video requested was not found * `101` - The owner of the requested video does not allow it to be played in embedded players * `150` - The same as 101 EventTypeEnum: enum: - -2 - -1 - 0 - 1 - 2 - 3 - 4 - 5 - 6 type: integer description: |- * `-2` - Player Ready * `-1` - Player Unstarted * `0` - Video ended * `1` - Video playing * `2` - Video paused * `3` - Video buffering * `4` - Video cued * `5` - Tab hidden * `6` - Tab visible NullEnum: enum: - null PatchedYouTubeEvent: type: object properties: id: type: string format: uuid readOnly: true created: type: string format: date-time readOnly: true modified: type: string format: date-time readOnly: true is_deleted: type: boolean event_type: allOf: - $ref: '#/components/schemas/EventTypeEnum' minimum: -9223372036854775808 maximum: 9223372036854775807 video_id: type: string maxLength: 50 user_id: type: string maxLength: 256 playback_quality: type: string nullable: true maxLength: 25 playback_rate: type: number format: double nullable: true error_code: nullable: true minimum: -9223372036854775808 maximum: 9223372036854775807 oneOf: - $ref: '#/components/schemas/ErrorCodeEnum' - $ref: '#/components/schemas/NullEnum' PatchedYoutubeVideoTimeWatched: type: object properties: id: type: integer readOnly: true created: type: string format: date-time readOnly: true modified: type: string format: date-time readOnly: true video_id: type: string maxLength: 50 user_id: type: string maxLength: 256 hours: type: number format: double nullable: true minutes: type: number format: double nullable: true seconds: type: number format: double nullable: true milliseconds: type: number format: double nullable: true YouTubeEvent: type: object properties: id: type: string format: uuid readOnly: true created: type: string format: date-time readOnly: true modified: type: string format: date-time readOnly: true is_deleted: type: boolean event_type: allOf: - $ref: '#/components/schemas/EventTypeEnum' minimum: -9223372036854775808 maximum: 9223372036854775807 video_id: type: string maxLength: 50 user_id: type: string maxLength: 256 playback_quality: type: string nullable: true maxLength: 25 playback_rate: type: number format: double nullable: true error_code: nullable: true minimum: -9223372036854775808 maximum: 9223372036854775807 oneOf: - $ref: '#/components/schemas/ErrorCodeEnum' - $ref: '#/components/schemas/NullEnum' required: - created - event_type - id - modified - user_id - video_id YoutubeVideoTimeWatched: type: object properties: id: type: integer readOnly: true created: type: string format: date-time readOnly: true modified: type: string format: date-time readOnly: true video_id: type: string maxLength: 50 user_id: type: string maxLength: 256 hours: type: number format: double nullable: true minutes: type: number format: double nullable: true seconds: type: number format: double nullable: true milliseconds: type: number format: double nullable: true required: - created - id - modified - user_id - video_id securitySchemes: basicAuth: type: http scheme: basic cookieAuth: type: apiKey in: cookie name: sessionid