This commit is contained in:
2026-02-18 02:17:13 +03:00
commit 8e0419c56b
23 changed files with 642 additions and 0 deletions

8
docs/api/auth/folder.bru Normal file
View File

@@ -0,0 +1,8 @@
meta {
name: auth
seq: 1
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,23 @@
meta {
name: login user
type: http
seq: 2
}
post {
url: {{base_url}}/auth/login
body: json
auth: inherit
}
body:json {
{
"login": "tsivinsky",
"password": "Daniil2000"
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,15 @@
meta {
name: logout user
type: http
seq: 3
}
post {
url: {{base_url}}/auth/logout
body: none
auth: inherit
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,24 @@
meta {
name: register new user
type: http
seq: 1
}
post {
url: {{base_url}}/auth/register
body: json
auth: inherit
}
body:json {
{
"email": "daniil@tsivinsky.com",
"login": "tsivinsky",
"password": "Daniil2000"
}
}
settings {
encodeUrl: true
timeout: 0
}

9
docs/api/bruno.json Normal file
View File

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

View File

@@ -0,0 +1,3 @@
vars {
base_url: http://localhost:5000
}

8
docs/api/user/folder.bru Normal file
View File

@@ -0,0 +1,8 @@
meta {
name: user
seq: 2
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,15 @@
meta {
name: get user
type: http
seq: 1
}
get {
url: {{base_url}}/user
body: none
auth: inherit
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,23 @@
meta {
name: create wishlist
type: http
seq: 2
}
post {
url: {{base_url}}/user/wishlists
body: json
auth: inherit
}
body:json {
{
"name": "test2",
"description": ""
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,20 @@
meta {
name: delete user wishlist
type: http
seq: 3
}
delete {
url: {{base_url}}/user/wishlists/:uid
body: none
auth: inherit
}
params:path {
uid: 019c6dd3-1832-75c1-8955-d545efeb3474
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,8 @@
meta {
name: wishlists
seq: 3
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,16 @@
meta {
name: get user wishlists
type: http
seq: 1
}
get {
url: {{base_url}}/user/wishlists
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,20 @@
meta {
name: get wishlist
type: http
seq: 4
}
get {
url: {{base_url}}/wishlists/:uid
body: none
auth: inherit
}
params:path {
uid: 019c6dcd-fde9-7374-a731-f03af290ea85
}
settings {
encodeUrl: true
timeout: 0
}