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
}