Added API Tests

This commit is contained in:
jd
2026-02-21 00:34:50 +00:00
parent 335f1821cd
commit f81220f837
24 changed files with 450 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
info:
name: Login
type: http
seq: 1
http:
method: POST
url: http://localhost:3000/api/auth/login
headers:
- name: Content-Type
value: application/json
body:
type: json
data: |-
{
"email":"james@dardry.com",
"password":"Foobar"
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,18 @@
info:
name: Token
type: http
seq: 2
http:
method: GET
url: http://localhost:3000/api/auth/token
headers:
- name: Cookie
value: refresh=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1IjoiMSIsInIiOiIxIiwiaWF0IjoxNzcxNTk3NjQ2LCJleHAiOjE3NzQxODk2NDZ9.07ViS5Nie3Bi2OgnlHyybDNZ9bdXPRRiqO-RFLhjoKo; Path=/; Max-Age=2592000; Secure; HttpOnly; SameSite=Lax
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,4 @@
info:
name: Auth
type: folder
seq: 1