init
This commit is contained in:
8
docs/api/auth/folder.bru
Normal file
8
docs/api/auth/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: auth
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
23
docs/api/auth/login user.bru
Normal file
23
docs/api/auth/login user.bru
Normal 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
|
||||
}
|
||||
15
docs/api/auth/logout user.bru
Normal file
15
docs/api/auth/logout user.bru
Normal 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
|
||||
}
|
||||
24
docs/api/auth/register new user.bru
Normal file
24
docs/api/auth/register new user.bru
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user