bruno files

This commit is contained in:
Владимир Шалимов 2024-06-07 17:52:30 +05:00
parent 6705d08a16
commit 434c36a4e0
6 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,11 @@
meta {
name: Buy Product
type: http
seq: 5
}
get {
url: {{host}}
body: none
auth: none
}

View File

@ -0,0 +1,19 @@
meta {
name: Edit User Name
type: http
seq: 4
}
patch {
url: {{host}}/user
body: formUrlEncoded
auth: bearer
}
auth:bearer {
token: {{token}}
}
body:form-urlencoded {
Name: Joe
}

View File

@ -0,0 +1,15 @@
meta {
name: Get Buyed Products
type: http
seq: 5
}
get {
url: {{host}}/user/products
body: none
auth: bearer
}
auth:bearer {
token: {{token}}
}

View File

@ -0,0 +1,15 @@
meta {
name: Get User Info
type: http
seq: 3
}
get {
url: {{host}}/user
body: none
auth: none
}
headers {
Authorization: Bearer TPqB2mHBjRkvLpH3M6kWSWVMj7O75t665g==
}

View File

@ -0,0 +1,18 @@
meta {
name: Login
type: http
seq: 2
}
post {
url: {{host}}/login
body: json
auth: none
}
body:json {
{
"email": "user@example.com",
"password": "1"
}
}

View File

@ -0,0 +1,19 @@
meta {
name: Register
type: http
seq: 1
}
post {
url: {{host}}/registration
body: json
auth: none
}
body:json {
{
"Name": "User 1",
"Email": "user@example.com",
"Password": "1"
}
}