mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.9 KiB
1.9 KiB
title
| title |
|---|
| Audio |
Audio
An audio API resource represents the audio track of a video.
For example, the audio Bakemonogatari-OP1.ogg represents the audio track of the Bakemonogatari-OP1.webm video.
Fields
| Name | Type | Nullable | Description |
|---|---|---|---|
| id | Integer | No | The primary key of the resource |
| basename | String | No | The basename of the file in storage |
| filename | String | No | The filename of the file in storage |
| path | String | No | The path of the file in storage |
| size | Integer | No | The size of the file in storage in Bytes |
| mimetype | String | No | The media type of the file in storage |
| created_at | Date | No | The date that the resource was created |
| updated_at | Date | No | The date that the resource was last modified |
| deleted_at | Date | Yes | The date that the resource was deleted |
| link | String | No | The URL to stream the file from storage |
Allowed Include Paths
- videos
Endpoints
The audio destroy endpoint soft deletes an audio and returns the deleted audio resource.
The audio force delete endpoint hard deletes an audio and returns a confirmation message.
The audio index endpoint displays a listing of audio resources.
The audio show endpoint returns an audio resource.
The audio store endpoint creates a new audio and returns the new audio resource.
The audio update endpoint updates an audio and returns the updated audio resource.