commit ea359586077ff61aa56c84235dcd664e2f8a7727 Author: creations Date: Wed Mar 19 19:00:41 2025 -0400 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d086e4 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# atums.world bruno_template \ No newline at end of file diff --git a/api/auth/email/request.bru b/api/auth/email/request.bru new file mode 100644 index 0000000..783d9aa --- /dev/null +++ b/api/auth/email/request.bru @@ -0,0 +1,11 @@ +meta { + name: request + type: http + seq: 2 +} + +get { + url: {{base_url}}/api/auth/email/verify/request + body: none + auth: inherit +} diff --git a/api/auth/email/verify.bru b/api/auth/email/verify.bru new file mode 100644 index 0000000..b8918e2 --- /dev/null +++ b/api/auth/email/verify.bru @@ -0,0 +1,15 @@ +meta { + name: verify + type: http + seq: 1 +} + +post { + url: {{base_url}}/api/auth/email/verify/:code + body: none + auth: none +} + +params:path { + code: 0195979d-8cf0-7000-b178-58187510ac4e +} diff --git a/api/auth/login.bru b/api/auth/login.bru new file mode 100755 index 0000000..3aa52bc --- /dev/null +++ b/api/auth/login.bru @@ -0,0 +1,19 @@ +meta { + name: login + type: http + seq: 2 +} + +post { + url: {{base_url}}/api/auth/login + body: json + auth: none +} + +body:json { + { + "username": "creations", + "email": "", + "password": "" + } +} diff --git a/api/auth/logout.bru b/api/auth/logout.bru new file mode 100755 index 0000000..96475d3 --- /dev/null +++ b/api/auth/logout.bru @@ -0,0 +1,11 @@ +meta { + name: logout + type: http + seq: 3 +} + +post { + url: {{base_url}}/api/auth/logout + body: none + auth: none +} diff --git a/api/auth/register.bru b/api/auth/register.bru new file mode 100755 index 0000000..ba7edc4 --- /dev/null +++ b/api/auth/register.bru @@ -0,0 +1,21 @@ +meta { + name: register + type: http + seq: 1 +} + +post { + url: {{base_url}}/api/auth/register + body: json + auth: none +} + +body:json { + { + "username": "creations", + "email": "", + "password": "", + "invite": "", + "timezone": "America/New_York" + } +} diff --git a/api/files/delete body.bru b/api/files/delete body.bru new file mode 100644 index 0000000..6f79a62 --- /dev/null +++ b/api/files/delete body.bru @@ -0,0 +1,17 @@ +meta { + name: delete body + type: http + seq: 3 +} + +delete { + url: {{base_url}}/api/files/delete + body: json + auth: inherit +} + +body:json { + { + "files": "0195823a-5712-7000-801a-88bcf68e1c3d" + } +} diff --git a/api/files/delete.bru b/api/files/delete.bru new file mode 100644 index 0000000..8d15476 --- /dev/null +++ b/api/files/delete.bru @@ -0,0 +1,15 @@ +meta { + name: delete + type: http + seq: 2 +} + +delete { + url: {{base_url}}/api/files/delete/:id-or-name + body: none + auth: inherit +} + +params:path { + id-or-name: 0195823a-5712-7000-801a-88bcf68e1c3d +} diff --git a/api/files/upload.bru b/api/files/upload.bru new file mode 100644 index 0000000..b9c5a4f --- /dev/null +++ b/api/files/upload.bru @@ -0,0 +1,19 @@ +meta { + name: upload + type: http + seq: 1 +} + +post { + url: {{base_url}}/api/files/upload + body: multipartForm + auth: inherit +} + +headers { + X-Clear-Exif: 1 +} + +body:multipart-form { + file: @file(/mnt/External Drive/Images/Pasted image.png) +} diff --git a/api/invite/create.bru b/api/invite/create.bru new file mode 100755 index 0000000..87667f6 --- /dev/null +++ b/api/invite/create.bru @@ -0,0 +1,17 @@ +meta { + name: create + type: http + seq: 1 +} + +post { + url: {{base_url}}/api/invite/create + body: json + auth: inherit +} + +body:json { + { + "expires": "1d1h" + } +} diff --git a/api/invite/delete.bru b/api/invite/delete.bru new file mode 100755 index 0000000..e3d08e8 --- /dev/null +++ b/api/invite/delete.bru @@ -0,0 +1,15 @@ +meta { + name: delete + type: http + seq: 2 +} + +delete { + url: {{base_url}}/api/invite/delete/:invite + body: none + auth: inherit +} + +params:path { + invite: 26c50d68-8f5c-4074-af6d-029681cbffd1 +} diff --git a/api/settings/set.bru b/api/settings/set.bru new file mode 100755 index 0000000..58a5455 --- /dev/null +++ b/api/settings/set.bru @@ -0,0 +1,18 @@ +meta { + name: set + type: http + seq: 1 +} + +post { + url: {{base_url}}/api/settings/set + body: json + auth: inherit +} + +body:json { + { + "key": "enable_thumbnails", + "value": "true" + } +} diff --git a/api/user/avatar/delete.bru b/api/user/avatar/delete.bru new file mode 100644 index 0000000..ce7eba3 --- /dev/null +++ b/api/user/avatar/delete.bru @@ -0,0 +1,11 @@ +meta { + name: delete + type: http + seq: 2 +} + +delete { + url: {{base_url}}/api/user/avatar/delete + body: none + auth: inherit +} diff --git a/api/user/avatar/set.bru b/api/user/avatar/set.bru new file mode 100644 index 0000000..609d9bd --- /dev/null +++ b/api/user/avatar/set.bru @@ -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) +} diff --git a/api/user/files.bru b/api/user/files.bru new file mode 100644 index 0000000..14cc2f3 --- /dev/null +++ b/api/user/files.bru @@ -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 +} diff --git a/api/user/info.bru b/api/user/info.bru new file mode 100644 index 0000000..2d9984c --- /dev/null +++ b/api/user/info.bru @@ -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 +} diff --git a/bruno.json b/bruno.json new file mode 100755 index 0000000..3700ff8 --- /dev/null +++ b/bruno.json @@ -0,0 +1,15 @@ +{ + "version": "1", + "name": "atums_world", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ], + "size": 0, + "filesCount": 0, + "presets": { + "requestType": "http", + "requestUrl": "{{base_url}}" + } +} \ No newline at end of file diff --git a/collection.bru b/collection.bru new file mode 100755 index 0000000..b82effc --- /dev/null +++ b/collection.bru @@ -0,0 +1,11 @@ +auth { + mode: bearer +} + +auth:bearer { + token: +} + +vars:pre-request { + base_url: http://0.0.0.0:9090 +} diff --git a/raw.bru b/raw.bru new file mode 100644 index 0000000..b40b6df --- /dev/null +++ b/raw.bru @@ -0,0 +1,15 @@ +meta { + name: raw + type: http + seq: 2 +} + +get { + url: {{base_url}}/file/:id-or-name + body: none + auth: none +} + +params:path { + id-or-name: 019587e8-8262-7000-bbfc-8735b774eff5 +}