refactor(media)!: unify processing under asynchronous job workflow #3
16
bruno/VoD-System/Clips/Delete Clip.bru
Normal file
16
bruno/VoD-System/Clips/Delete Clip.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Delete Clip
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/clips/6
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
16
bruno/VoD-System/Clips/Downloads/Get Clip Media.bru
Normal file
16
bruno/VoD-System/Clips/Downloads/Get Clip Media.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get Clip Media
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/clips/5/media
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
15
bruno/VoD-System/Clips/Downloads/Get Clip Thumbnail.bru
Normal file
15
bruno/VoD-System/Clips/Downloads/Get Clip Thumbnail.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Get Clip Thumbnail
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/clips/5/thumbnail
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
8
bruno/VoD-System/Clips/Downloads/folder.bru
Normal file
8
bruno/VoD-System/Clips/Downloads/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Downloads
|
||||
seq: 4
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
16
bruno/VoD-System/Clips/Get Clip.bru
Normal file
16
bruno/VoD-System/Clips/Get Clip.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get Clip
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/clips/5
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
15
bruno/VoD-System/Jobs/Download Video.bru
Normal file
15
bruno/VoD-System/Jobs/Download Video.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Download Video
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/jobs/{{uuid}}/download
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
16
bruno/VoD-System/Jobs/Get Job.bru
Normal file
16
bruno/VoD-System/Jobs/Get Job.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get Job
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/jobs/{{uuid}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
8
bruno/VoD-System/Jobs/folder.bru
Normal file
8
bruno/VoD-System/Jobs/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Jobs
|
||||
seq: 7
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
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
|
||||
}
|
||||
30
bruno/VoD-System/Users/Get Google Token.bru
Normal file
30
bruno/VoD-System/Users/Get Google Token.bru
Normal file
@@ -0,0 +1,30 @@
|
||||
meta {
|
||||
name: Get Google Token
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url:
|
||||
body: none
|
||||
auth: oauth2
|
||||
}
|
||||
|
||||
auth:oauth2 {
|
||||
grant_type: authorization_code
|
||||
callback_url: http://localhost:8080
|
||||
authorization_url: https://accounts.google.com/o/oauth2/v2/auth
|
||||
access_token_url: https://oauth2.googleapis.com/token
|
||||
refresh_token_url:
|
||||
client_id: {{google_client_id}}
|
||||
client_secret: {{google_secret}}
|
||||
scope: profile email openid
|
||||
state:
|
||||
pkce: true
|
||||
credentials_placement: body
|
||||
credentials_id: credentials
|
||||
token_placement: header
|
||||
token_header_prefix: Bearer
|
||||
auto_fetch_token: true
|
||||
auto_refresh_token: false
|
||||
}
|
||||
11
bruno/VoD-System/Users/Get User.bru
Normal file
11
bruno/VoD-System/Users/Get User.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Get User
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/users/me
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
21
bruno/VoD-System/Users/Login.bru
Normal file
21
bruno/VoD-System/Users/Login.bru
Normal file
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/users/login
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"token": "{{$oauth2.credentials.id_token}}"
|
||||
}
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
bru.setEnvVar("token", res.getBody().data.token);
|
||||
}
|
||||
8
bruno/VoD-System/Users/folder.bru
Normal file
8
bruno/VoD-System/Users/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Users
|
||||
seq: 5
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user