Added API Tests
This commit is contained in:
25
API Tests/BGApp/Auth/Login.yml
Normal file
25
API Tests/BGApp/Auth/Login.yml
Normal 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
|
||||
18
API Tests/BGApp/Auth/Token.yml
Normal file
18
API Tests/BGApp/Auth/Token.yml
Normal 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
|
||||
4
API Tests/BGApp/Auth/folder.yml
Normal file
4
API Tests/BGApp/Auth/folder.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
info:
|
||||
name: Auth
|
||||
type: folder
|
||||
seq: 1
|
||||
Reference in New Issue
Block a user