docs(bruno): new bruno files
This commit is contained in:
17
bruno/VoD-System/Media/Clip Stream.bru
Normal file
17
bruno/VoD-System/Media/Clip Stream.bru
Normal file
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: Clip Stream
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/media/clip
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"duration": 60
|
||||
}
|
||||
}
|
||||
22
bruno/VoD-System/Media/Compress.bru
Normal file
22
bruno/VoD-System/Media/Compress.bru
Normal file
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: Compress
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/media/compress
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
file: @file(/Users/dylan/Downloads/Is Russia at a Breaking Point_.mp4)
|
||||
title: hello
|
||||
startPoint: 10
|
||||
duration: 30
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
bru.setEnvVar("uuid", res.getBody().data.uuid);
|
||||
}
|
||||
18
bruno/VoD-System/Media/Save Stream Section.bru
Normal file
18
bruno/VoD-System/Media/Save Stream Section.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Save Stream Section
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/media/save
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"startTime": "2026-06-21T17:27:00Z",
|
||||
"endTime": "2026-06-21T17:28:00Z"
|
||||
}
|
||||
}
|
||||
8
bruno/VoD-System/Media/folder.bru
Normal file
8
bruno/VoD-System/Media/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Media
|
||||
seq: 4
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user