user register va login qo'shildi

This commit is contained in:
Husanjonazamov
2026-02-12 12:07:09 +05:00
commit 1c126819bb
6 changed files with 91 additions and 0 deletions

9
bruno.json Normal file
View File

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

View File

@@ -0,0 +1,3 @@
vars {
BASE_URL: http://127.0.0.1:8055
}

23
users/authToken.bru Normal file
View 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
View 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
View 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
View File

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