Implemented roll request, updated API requests
This commit is contained in:
17
bruno/audio/Pause Track.bru
Normal file
17
bruno/audio/Pause Track.bru
Normal file
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: Pause Track
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/audio/pause
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"guild_id": 1061092965579235398
|
||||
}
|
||||
}
|
||||
18
bruno/audio/Play Track.bru
Normal file
18
bruno/audio/Play Track.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Play Track
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/audio/play
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"url": "https://www.youtube.com/watch?v=V-QDxuknK-Q",
|
||||
"guild_id": 1061092965579235398
|
||||
}
|
||||
}
|
||||
17
bruno/audio/Resume Track.bru
Normal file
17
bruno/audio/Resume Track.bru
Normal file
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: Resume Track
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/audio/resume
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"guild_id": 1061092965579235398
|
||||
}
|
||||
}
|
||||
9
bruno/bruno.json
Normal file
9
bruno/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "Siren",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
11
bruno/collection.bru
Normal file
11
bruno/collection.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
auth {
|
||||
mode: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjI1MDg0MjI2MTIyMTI3NzY5NywibmFtZSI6ImJzaGVycmlmZiIsImlhdCI6MTczNDcwNDI3NSwiZXhwIjoxNzM0NzkwNjc1LCJqdGkiOiJMSnc1Vnk3azZjc1BiYlJRWGlNcVFFVUZlQ29JS2JqcCJ9.sdgb93DmX9_augMdktYr58m5eTIJPuY13d87pckZOns
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
baseUrl: http://localhost:3000/api
|
||||
}
|
||||
11
bruno/oauth/Authorize.bru
Normal file
11
bruno/oauth/Authorize.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Authorize
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/oauth/authorize
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user