user register va login qo'shildi
This commit is contained in:
9
bruno.json
Normal file
9
bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "sifatbaho",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
3
environments/BASE_URL.bru
Normal file
3
environments/BASE_URL.bru
Normal file
@@ -0,0 +1,3 @@
|
||||
vars {
|
||||
BASE_URL: http://127.0.0.1:8055
|
||||
}
|
||||
23
users/authToken.bru
Normal file
23
users/authToken.bru
Normal file
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: authToken
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/api/v1/auth/token/
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"phone": "+998940014741",
|
||||
"password": "940014741"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
23
users/confirmUser.bru
Normal file
23
users/confirmUser.bru
Normal file
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: confirmUser
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/api/v1/auth/confirm/
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"code": 1111,
|
||||
"phone": "+998940014741"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
25
users/createUser.bru
Normal file
25
users/createUser.bru
Normal file
@@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: createUser
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/api/v1/auth/register/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"first_name": "Husanjon",
|
||||
"last_name": "Azamov",
|
||||
"phone": "+998940014741",
|
||||
"password": "940014741"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
8
users/folder.bru
Normal file
8
users/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: users
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user