Add bruno files
This commit is contained in:
23
Bruno/Endpoints/Auth/Login as normal.bru
Normal file
23
Bruno/Endpoints/Auth/Login as normal.bru
Normal file
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Login as normal
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/api/auth/login
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "dominykas@svetikas.lt",
|
||||
"password": "LabaiSlaptas123@"
|
||||
}
|
||||
}
|
||||
|
||||
vars:post-response {
|
||||
accessToken: res.body.accessToken
|
||||
refreshToken: res.body.refreshToken
|
||||
}
|
||||
22
Bruno/Endpoints/Auth/Refresh token.bru
Normal file
22
Bruno/Endpoints/Auth/Refresh token.bru
Normal file
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: Refresh token
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/api/auth/refresh
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"refreshToken": "{{refreshToken}}"
|
||||
}
|
||||
}
|
||||
|
||||
vars:post-response {
|
||||
accessToken: res.body.accessToken
|
||||
refreshToken: res.body.refreshToken
|
||||
}
|
||||
19
Bruno/Endpoints/Auth/Register normal user.bru
Normal file
19
Bruno/Endpoints/Auth/Register normal user.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Register normal user
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/api/auth/register
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"userName": "Dominykas",
|
||||
"email": "dominykas@svetikas.lt",
|
||||
"password": "LabaiSlaptas123@"
|
||||
}
|
||||
}
|
||||
8
Bruno/Endpoints/Auth/folder.bru
Normal file
8
Bruno/Endpoints/Auth/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Auth
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user