feat(lst): added in basic authentication
This commit is contained in:
18
apiDocs/lstV2/Auth/Login.bru
Normal file
18
apiDocs/lstV2/Auth/Login.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:4000/api/auth/login
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username":"admin",
|
||||
"password": "password123"
|
||||
}
|
||||
}
|
||||
15
apiDocs/lstV2/Auth/Test Protected.bru
Normal file
15
apiDocs/lstV2/Auth/Test Protected.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Test Protected
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:4000/api/protected
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTczOTgyMTgyNiwiZXhwIjoxNzM5ODI1NDI2fQ.N5pn4PaPDhM_AXAOTGwd-_TOP9UOU1wK0vmICVE7vEc
|
||||
}
|
||||
19
apiDocs/lstV2/Auth/session.bru
Normal file
19
apiDocs/lstV2/Auth/session.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: session
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:4000/api/auth/session
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
headers {
|
||||
:
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTczOTgyNzE1NiwiZXhwIjoxNzM5ODI3MjE2fQ.VE9URMrRI_5_wc8CEmj-VEVeP01LL412vKhNwWRRHRM
|
||||
}
|
||||
9
apiDocs/lstV2/bruno.json
Normal file
9
apiDocs/lstV2/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "lstV2",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user