mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 08:24:00 +02:00
4.0 KiB
4.0 KiB
title
| title |
|---|
| Video |
Video
A video API resource represents a WebM of an anime theme.
For example, the video Bakemonogatari-OP1.webm represents the WebM of the Bakemonogatari OP1 theme.
Fields
| Name | Type | Nullable | Default | Description |
|---|---|---|---|---|
| id | Integer | No | Yes | The primary key of the resource |
| basename | String | No | Yes | The basename of the file in storage |
| filename | String | No | Yes | The filename of the file in storage |
| path | String | No | Yes | The path of the file in storage |
| size | Integer | No | Yes | The size of the file in storage in Bytes |
| mimetype | String | No | No | The media type of the file in storage |
| resolution | Integer | Yes | Yes | The frame height of the file in storage |
| nc | Boolean | No | Yes | Is the video creditless? |
| subbed | Boolean | No | Yes | Does the video include subtitles of dialogue? |
| lyrics | Boolean | No | Yes | Does the video include subtitles of song lyrics? |
| uncen | Boolean | No | Yes | Is the video an uncensored version of a censored sequence? |
| source | Enum | Yes | Yes | Where did this video come from? [WEB, RAW, BD, DVD, VHS, LD] |
| overlap | Enum | No | Yes | The degree to which the sequence and episode content overlap [None, Transition, Over] |
| tags | String | No | Yes | The attributes used to distinguish the file within the context of a theme |
| link | String | No | Yes | The URL to stream the file from storage |
| views_count | Integer | No | No | The number of views recorded for the resource |
| created_at | Date | No | No | The date that the resource was created |
| updated_at | Date | No | No | The date that the resource was last modified |
| deleted_at | Date | Yes | No | The date that the resource was deleted |
Allowed Include Paths
- animethemeentries
- animethemeentries.animetheme
- animethemeentries.animetheme.anime
- animethemeentries.animetheme.group
- audio
- videoscript
Endpoints
The video destroy endpoint soft deletes a video and returns the deleted video resource.
The video force delete endpoint hard deletes a video and returns a confirmation message.
The video index endpoint displays a listing of video resources.
The video restore endpoint restores a soft deleted video and returns the restored video resource.
The video show endpoint returns a video resource.
The video store endpoint creates a new video and returns the new video resource.
The video update endpoint updates a video and returns the updated video resource.