first commit

This commit is contained in:
creations 2025-03-19 19:00:41 -04:00
commit ea35958607
Signed by: creations
GPG key ID: 8F553AA4320FC711
19 changed files with 285 additions and 0 deletions

View file

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

19
api/user/avatar/set.bru Normal file
View file

@ -0,0 +1,19 @@
meta {
name: set
type: http
seq: 1
}
post {
url: {{base_url}}/api/user/avatar/set?user=73d2d5da-c0ba-4cd9-b906-8cd2cb82e2b2
body: multipartForm
auth: inherit
}
params:query {
user: 73d2d5da-c0ba-4cd9-b906-8cd2cb82e2b2
}
body:multipart-form {
file: @file(/mnt/External Drive/Images/wot/7dc61f8b8bd6c5019f902d05d2ff8bb0-1844390142.png)
}

16
api/user/files.bru Normal file
View file

@ -0,0 +1,16 @@
meta {
name: files
type: http
seq: 2
}
get {
url: {{base_url}}/api/user/files?sort_by=size&sort_order=desc
body: none
auth: inherit
}
params:query {
sort_by: size
sort_order: desc
}

19
api/user/info.bru Normal file
View file

@ -0,0 +1,19 @@
meta {
name: info
type: http
seq: 1
}
get {
url: {{base_url}}/api/user/info/:id-or-name?invites=1
body: none
auth: inherit
}
params:query {
invites: 1
}
params:path {
id-or-name: creations
}