first commit

This commit is contained in:
creations 2025-05-11 10:48:01 -04:00
commit b7c83d9b77
Signed by: creations
GPG key ID: 8F553AA4320FC711
17 changed files with 220 additions and 0 deletions

15
bruno.json Normal file
View file

@ -0,0 +1,15 @@
{
"version": "1",
"name": "void-backend",
"type": "collection",
"ignore": [
"node_modules",
".git"
],
"size": 0,
"filesCount": 0,
"presets": {
"requestType": "http",
"requestUrl": "{{base_url}}"
}
}

7
collection.bru Normal file
View file

@ -0,0 +1,7 @@
vars:pre-request {
base_url: http://localhost:8080
}
docs {
api testing for void
}

22
guild/channel/create.bru Normal file
View file

@ -0,0 +1,22 @@
meta {
name: create
type: http
seq: 1
}
post {
url: {{base_url}}/guild/:id/channel/create
body: json
auth: inherit
}
params:path {
id: guild_NDQ0NDk5OTUwMDM2NzY2NzIy
}
body:json {
{
"name": "general",
"type": "text"
}
}

21
guild/channel/delete.bru Normal file
View file

@ -0,0 +1,21 @@
meta {
name: delete
type: http
seq: 2
}
delete {
url: {{base_url}}/guild/:id/channel/delete
body: json
auth: inherit
}
params:path {
id: guild_NDQ0NDk5OTUwMDM2NzY2NzIy
}
body:json {
{
"id": "channel_NDQ0NTA2MzQyMzgyNTU1MTM3"
}
}

3
guild/channel/folder.bru Normal file
View file

@ -0,0 +1,3 @@
meta {
name: channel
}

17
guild/create.bru Normal file
View file

@ -0,0 +1,17 @@
meta {
name: create
type: http
seq: 1
}
post {
url: {{base_url}}/guild/create
body: json
auth: inherit
}
body:json {
{
"name": "Atums World"
}
}

11
guild/delete.bru Normal file
View file

@ -0,0 +1,11 @@
meta {
name: delete
type: http
seq: 2
}
delete {
url: {{base_url}}/guild/delete
body: none
auth: inherit
}

3
guild/folder.bru Normal file
View file

@ -0,0 +1,3 @@
meta {
name: guild
}

22
guild/invite/create.bru Normal file
View file

@ -0,0 +1,22 @@
meta {
name: create
type: http
seq: 1
}
post {
url: {{base_url}}/guild/:id/invite/create
body: json
auth: inherit
}
params:path {
id: guild_NDQxNjU4MTA3NzA4MjMxNjgy
}
body:json {
{
"max_uses": "1",
"expires_at": ""
}
}

3
guild/invite/folder.bru Normal file
View file

@ -0,0 +1,3 @@
meta {
name: invite
}

15
guild/join.bru Normal file
View file

@ -0,0 +1,15 @@
meta {
name: join
type: http
seq: 3
}
post {
url: {{base_url}}/guild/join/:invite
body: none
auth: inherit
}
params:path {
invite: invite_NDQxNjU4MTQ2NjQzOTU1NzE1
}

15
guild/leave.bru Normal file
View file

@ -0,0 +1,15 @@
meta {
name: leave
type: http
seq: 4
}
delete {
url: {{base_url}}/guild/:id/leave
body: none
auth: inherit
}
params:path {
id: guild_NDQxNjEyNDQyNDc1MDg5OTIx
}

3
user/folder.bru Normal file
View file

@ -0,0 +1,3 @@
meta {
name: user
}

15
user/info.bru Normal file
View file

@ -0,0 +1,15 @@
meta {
name: info
type: http
seq: 4
}
get {
url: {{base_url}}/user/:id
body: none
auth: inherit
}
params:path {
id: user_NDQ0NDk5NjYxMjk2Njg1MDU3
}

18
user/login.bru Normal file
View file

@ -0,0 +1,18 @@
meta {
name: login
type: http
seq: 2
}
post {
url: {{base_url}}/user/login
body: json
auth: inherit
}
body:json {
{
"password": "Test!?1Test!?1",
"email": "test@creations.works"
}
}

11
user/logout.bru Normal file
View file

@ -0,0 +1,11 @@
meta {
name: logout
type: http
seq: 3
}
delete {
url: {{base_url}}/user/logout
body: none
auth: inherit
}

19
user/register.bru Normal file
View file

@ -0,0 +1,19 @@
meta {
name: register
type: http
seq: 1
}
post {
url: {{base_url}}/user/register
body: json
auth: inherit
}
body:json {
{
"username": "test",
"password": "Test!?1Test!?1",
"email": "test@creations.works"
}
}