add api docs with bruno

This commit is contained in:
2026-02-15 17:20:09 +03:00
parent 14815e521b
commit e58c10c67c
6 changed files with 82 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,16 @@
meta {
name: Logout user
type: http
seq: 2
}
post {
url: {{base_url}}/api/auth/logout
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

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

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

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

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

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

View File

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