Video Files
The Video Files API allows you to manage video files for movies and TV series episodes.
List Video Files
GET
/api/v1/video-files
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
video_file_id | integer | No | Filter by video file ID |
title | string | No | Filter by title |
Response
{
"data": [
{
"video_file_id": 1,
"title": "Breaking Bad S01E01 1080p",
"url": "https://api.dobridobrev.com/storage/videos/breaking-bad-s01e01-1080p.mp4",
"quality": "1080p",
"videoable_type": "App\\Models\\Episode",
"videoable_id": 1
}
],
"links": {
"first": "https://api.dobridobrev.com/api/v1/video-files?page=1",
"last": "https://api.dobridobrev.com/api/v1/video-files?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 50,
"to": 1,
"total": 1
}
}
Get Video File
GET
/api/v1/video-files/{video_file_id}
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
video_file_id | integer | Yes | Video File ID |
Response
{
"data": {
"video_file_id": 1,
"title": "Breaking Bad S01E01 1080p",
"url": "https://api.dobridobrev.com/storage/videos/breaking-bad-s01e01-1080p.mp4",
"quality": "1080p",
"videoable_type": "App\\Models\\Episode",
"videoable_id": 1
}
}
Upload Video File
POST
/api/v1/video-files
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
title | string | Yes | Video file title |
file | file | Yes | Video file (mp4) |
quality | string | Yes | Video quality (e.g., 1080p, 720p) |
videoable_type | string | Yes | Related model type (Episode) |
videoable_id | integer | Yes | ID of the related model |
Response
{
"message": "Video file created successfully",
"data": {
"video_file_id": 1,
"title": "Breaking Bad S01E01 1080p",
"url": "https://api.dobridobrev.com/storage/videos/breaking-bad-s01e01-1080p.mp4",
"quality": "1080p",
"videoable_type": "App\\Models\\Episode",
"videoable_id": 1
}
}
Update Video File
PUT
/api/v1/video-files/{video_file_id}
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
video_file_id | integer | Yes | Video File ID |
Request Body
Same as Upload Video File endpoint.
Response
Same as Upload Video File response.
Delete Video File
DELETE
/api/v1/video-files/{video_file_id}
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
video_file_id | integer | Yes | Video File ID |
Response
{
"message": "Video file deleted successfully"
}