Implemented roll request, updated API requests

This commit is contained in:
2024-12-20 15:13:31 -05:00
parent bb03654d5f
commit 8ac0e59b8c
23 changed files with 459 additions and 150 deletions

View 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
}
}

View 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
}
}

View 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
View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "Siren",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

11
bruno/collection.bru Normal file
View 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
View File

@@ -0,0 +1,11 @@
meta {
name: Authorize
type: http
seq: 1
}
get {
url: {{baseUrl}}/oauth/authorize
body: none
auth: inherit
}