This file contains documentation for the WIP API.
- /api/upload - Uploads a video to the backend
- /api/get - Gets a certain video from the backend
- /api/cut - Cuts a video
- /api/transcribe - Transcribes a video
- /api/delete - Deletes a video from the backend
Uploads a video, and returns the ID attributed to the video.
POST request with following attributes:
- File with key "video" and value of video data
JSON data with following attributes:
- ID of file under key
video-id
Example response:
{
"video-id": [Int]
}
Gets a download URL for a video.
POST request with the following attributes:
id
as key, ID of video to get as value
JSON data with following attributes:
- URL to file under key
url
Example response:
{
"url": [String]
}
Cuts a video with the given ID at the specified points. Returns a new video ID that the cut video resides at.
POST request with the following attributes:
id
as key, ID of the video to get as valuestart
as key, start time to cut as valuestop
as key, stop time to cut as value
JSON data with the following attributes:
- ID of new video under key
id
Deletes the video at the given ID.
POST requests with the following attributes:
id
as key, ID of the video to delete as value
JSON data with the following attributes:
- Boolean determining if we deleted the vide under key
deleted