feat(lst): added in basic authentication

This commit is contained in:
2025-02-17 20:01:04 -06:00
parent ca27264bb0
commit 5f7a3dd182
25 changed files with 810 additions and 154 deletions

View 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"
}
}

View 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
}

View 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
View File

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