This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
6. Endpoints
Tristan Chin edited this page Jul 3, 2022
·
2 revisions
Here are all the endpoints exposed by the server. All routes are authenticated, unless USE_PASSWORD
is false
.
POST /
Receives videos and merges them immediately. Returns the resulting video.
Request
Content-Type: multipart/form-data
Field | Type | Description |
---|---|---|
files | File[] | The files to merge |
creationDate | string | A string representation of the date to use as Creation Date for the output file's metadata |
Response
The merged video
POST /flush
Deletes every file in the tmp
directory (input files, output files and command lists)
POST /create
Initializes a new merge and returns its ID so that you can add files individually later.
Response
{
"id": string
}
POST /add/:id
Receives videos and adds them to the merge represented by the given id
.
Request
Content-Type: multipart/form-data
Field | Type | Description |
---|---|---|
files | File[] | The files to merge |
POST /:id
Merges the videos in the merge represented by the given id
and returns it.
Request
Content-Type: JSON
{
"creationDate": string
}
Response
The merged video