Metar overhaul, added footer, updated schemas
This commit is contained in:
22
bruno/Account/Change Password.bru
Normal file
22
bruno/Account/Change Password.bru
Normal file
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: Change Password
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{API_URL}}/account/password
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"password": "New Password"
|
||||
}
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
const apiKey = res.body
|
||||
bru.setVar("bearer",apiKey)
|
||||
}
|
||||
18
bruno/Account/Confirm Password Reset.bru
Normal file
18
bruno/Account/Confirm Password Reset.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Confirm Password Reset
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_URL}}/account/password/verify
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"token": "token",
|
||||
"password": "New Password"
|
||||
}
|
||||
}
|
||||
11
bruno/Account/Get Profile.bru
Normal file
11
bruno/Account/Get Profile.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Get Profile
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{API_URL}}/account/profile
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
18
bruno/Account/Login.bru
Normal file
18
bruno/Account/Login.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_URL}}/account/login
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username": "user",
|
||||
"password": "changeme"
|
||||
}
|
||||
}
|
||||
18
bruno/Account/Logout.bru
Normal file
18
bruno/Account/Logout.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Logout
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_URL}}/account/logout
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "user@gmail.com",
|
||||
"password": "changeme"
|
||||
}
|
||||
}
|
||||
11
bruno/Account/Refresh Session.bru
Normal file
11
bruno/Account/Refresh Session.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Refresh Session
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{API_URL}}/account/session
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
21
bruno/Account/Register.bru
Normal file
21
bruno/Account/Register.bru
Normal file
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Register
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_URL}}/account/register
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username": "user",
|
||||
"email": "user@example.com",
|
||||
"password": "changeme",
|
||||
"firstName": "John",
|
||||
"lastName": "Doe"
|
||||
}
|
||||
}
|
||||
11
bruno/Account/Resend Email Confirmation.bru
Normal file
11
bruno/Account/Resend Email Confirmation.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Resend Email Confirmation
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_URL}}/account/register/resend
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
17
bruno/Account/Reset Password.bru
Normal file
17
bruno/Account/Reset Password.bru
Normal file
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: Reset Password
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_URL}}/account/password/reset
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "user@example.com"
|
||||
}
|
||||
}
|
||||
17
bruno/Account/Verify Email Confirmation.bru
Normal file
17
bruno/Account/Verify Email Confirmation.bru
Normal file
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: Verify Email Confirmation
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_URL}}/account/register/verify
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"token": "token"
|
||||
}
|
||||
}
|
||||
3
bruno/Account/folder.bru
Normal file
3
bruno/Account/folder.bru
Normal file
@@ -0,0 +1,3 @@
|
||||
meta {
|
||||
name: Account
|
||||
}
|
||||
Reference in New Issue
Block a user