Tidied up Bruno files.
This commit is contained in:
@@ -5,7 +5,7 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
url: http://localhost:3000/api/auth/login
|
url: "{{BASE_URL}}/api/auth/login"
|
||||||
headers:
|
headers:
|
||||||
- name: Content-Type
|
- name: Content-Type
|
||||||
value: application/json
|
value: application/json
|
||||||
@@ -18,6 +18,16 @@ http:
|
|||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
scripts:
|
||||||
|
- type: after-response
|
||||||
|
code: |-
|
||||||
|
function onResponse(res) {
|
||||||
|
console.log(res.getHeader('set-cookie'));
|
||||||
|
bru.setEnvVar("REFRESH_COOKIE", res.getHeader('set-cookie'));
|
||||||
|
}
|
||||||
|
onResponse(res);
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,12 +5,22 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/auth/token
|
url: "{{BASE_URL}}/api/auth/token"
|
||||||
headers:
|
headers:
|
||||||
- name: Cookie
|
- name: Cookie
|
||||||
value: refresh=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1IjoiMSIsInIiOiIxIiwiaWF0IjoxNzcxNTk3NjQ2LCJleHAiOjE3NzQxODk2NDZ9.07ViS5Nie3Bi2OgnlHyybDNZ9bdXPRRiqO-RFLhjoKo; Path=/; Max-Age=2592000; Secure; HttpOnly; SameSite=Lax
|
value: "{{REFRESH_COOKIE}}"
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
scripts:
|
||||||
|
- type: after-response
|
||||||
|
code: |-
|
||||||
|
function onResponse(res) {
|
||||||
|
let data = res.getBody();
|
||||||
|
bru.setEnvVar("BEARER_TOKEN", data.token);
|
||||||
|
}
|
||||||
|
onResponse(res);
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
28
API Tests/BGApp/Collections/Add game.yml
Normal file
28
API Tests/BGApp/Collections/Add game.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
info:
|
||||||
|
name: Add game
|
||||||
|
type: http
|
||||||
|
seq: 6
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: POST
|
||||||
|
url: "{{BASE_URL}}/api/collection/{{CollectionID}}/add"
|
||||||
|
body:
|
||||||
|
type: json
|
||||||
|
data: |-
|
||||||
|
{
|
||||||
|
"gameId": "{{GameID}}"
|
||||||
|
}
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: CollectionID
|
||||||
|
value: ""
|
||||||
|
- name: GameID
|
||||||
|
value: ""
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
@@ -5,15 +5,20 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
url: http://localhost:3000/api/collection
|
url: "{{BASE_URL}}/api/collection"
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"name": "Invited player2"
|
"name": "{{Name}}"
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Name
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: DELETE
|
method: DELETE
|
||||||
url: http://localhost:3000/api/collection/:id
|
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: bmOe
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: CollectionID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,18 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/collection/:id
|
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||||
params:
|
params:
|
||||||
- name: id
|
- name: ""
|
||||||
value: ejRe
|
value: ""
|
||||||
type: path
|
type: query
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: CollectionID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,9 +5,16 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/collection/list
|
url: "{{BASE_URL}}/api/collection/list/{{PageSize}}/{{Page}}"
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: PageSize
|
||||||
|
value: "1"
|
||||||
|
- name: Page
|
||||||
|
value: "0"
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
28
API Tests/BGApp/Collections/Remove game.yml
Normal file
28
API Tests/BGApp/Collections/Remove game.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
info:
|
||||||
|
name: Remove game
|
||||||
|
type: http
|
||||||
|
seq: 7
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: POST
|
||||||
|
url: "{{BASE_URL}}/api/collection/{{CollectionID}}/remove"
|
||||||
|
body:
|
||||||
|
type: json
|
||||||
|
data: |-
|
||||||
|
{
|
||||||
|
"gameId": "{{GameID}}"
|
||||||
|
}
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: CollectionID
|
||||||
|
value: ""
|
||||||
|
- name: GameID
|
||||||
|
value: ""
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
@@ -5,21 +5,22 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: PATCH
|
method: PATCH
|
||||||
url: http://localhost:3000/api/collection/:id
|
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: bmOe
|
|
||||||
type: path
|
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"name": "Test Player",
|
"name": "{{Name}}"
|
||||||
"isRatingLocked": true,
|
|
||||||
"canBeMultiple": false
|
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: CollectionID
|
||||||
|
value: ""
|
||||||
|
- name: Name
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,15 +5,20 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
url: http://localhost:3000/api/game
|
url: "{{BASE_URL}}/api/game"
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"name": "Test Game3"
|
"name": "{{Name}}"
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Name
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: DELETE
|
method: DELETE
|
||||||
url: http://localhost:3000/api/game/:id
|
url: "{{BASE_URL}}/api/game/{{GameID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: bk5e
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: GameID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/game/:id
|
url: "{{BASE_URL}}/api/game/{{GameID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: bk5e
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: GameID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,18 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/game/search/:query
|
url: "{{BASE_URL}}/api/game/search/{{Query}}/{{PageSize}}/{{Page}}"
|
||||||
params:
|
|
||||||
- name: query
|
|
||||||
value: game
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Query
|
||||||
|
value: test
|
||||||
|
- name: PageSize
|
||||||
|
value: "2"
|
||||||
|
- name: Page
|
||||||
|
value: "2"
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,19 +5,22 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: PATCH
|
method: PATCH
|
||||||
url: http://localhost:3000/api/game/:id
|
url: "{{BASE_URL}}/api/game/{{GameID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: el5a
|
|
||||||
type: path
|
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"name":"Updated game"
|
"name":"{{Name}}"
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: GameID
|
||||||
|
value: ""
|
||||||
|
- name: Name
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,16 +5,23 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
url: http://localhost:3000/api/invite/accept
|
url: "{{BASE_URL}}/api/invite/accept"
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"inviteCode": "3ST6N8",
|
"inviteCode": "{{InviteCode}}",
|
||||||
"password": "test123"
|
"password": "{{Password}}
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: InviteCode
|
||||||
|
value: ""
|
||||||
|
- name: Password
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,16 +5,23 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
url: http://localhost:3000/api/invite
|
url: "{{BASE_URL}}/api/invite"
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"email": "james+test2@dardry.com",
|
"email": "{{Email}}",
|
||||||
"playerId": "boja"
|
"playerId": "{{PlayerID}}"
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Email
|
||||||
|
value: ""
|
||||||
|
- name: PlayerID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Invites
|
name: Invites
|
||||||
type: folder
|
type: folder
|
||||||
seq: 5
|
seq: 1
|
||||||
|
|
||||||
request:
|
request:
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|||||||
@@ -5,15 +5,20 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
url: http://localhost:3000/api/player
|
url: "{{BASE_URL}}/api/player"
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"name": "Invited player2"
|
"name": "{{Name}}"
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Name
|
||||||
|
value: Test
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: DELETE
|
method: DELETE
|
||||||
url: http://localhost:3000/api/player/:id
|
url: "{{BASE_URL}}/api/player/{{PlayerID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: bmOe
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: PlayerID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/player/:id
|
url: "{{BASE_URL}}/api/player/{{PlayerID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: ejRe
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: PlayerID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/player/list
|
url: "{{BASE_URL}}/api/player/list"
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
@@ -5,21 +5,24 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: PATCH
|
method: PATCH
|
||||||
url: http://localhost:3000/api/player/:id
|
url: "{{BASE_URL}}/api/player/{{PlayerID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: bmOe
|
|
||||||
type: path
|
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"name": "Test Player",
|
"name": "{{Name}}",
|
||||||
"isRatingLocked": true,
|
"isRatingLocked": false,
|
||||||
"canBeMultiple": false
|
"canBeMultiple": false
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Name
|
||||||
|
value: Foo
|
||||||
|
- name: PlayerID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,17 +5,26 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
url: http://localhost:3000/api/user
|
url: "{{BASE_URL}}/api/user"
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"email": "Test User",
|
"email": "{{Email}}",
|
||||||
"password": "Test123",
|
"password": "{{Password}}",
|
||||||
"playerId": "enRe"
|
"playerId": "{{PlayerID}}"
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Email
|
||||||
|
value: ""
|
||||||
|
- name: Password
|
||||||
|
value: ""
|
||||||
|
- name: PlayerID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: DELETE
|
method: DELETE
|
||||||
url: http://localhost:3000/api/user/:id
|
url: "{{BASE_URL}}/api/user/{{UserID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: ""
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: UserID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: GET
|
method: GET
|
||||||
url: http://localhost:3000/api/user/:id
|
url: "{{BASE_URL}}/api/user/{{UserID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: ejRe
|
|
||||||
type: path
|
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: UserID
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
@@ -5,20 +5,28 @@ info:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
method: PATCH
|
method: PATCH
|
||||||
url: http://localhost:3000/api/user/:id
|
url: "{{BASE_URL}}/api/user/{{UserID}}"
|
||||||
params:
|
|
||||||
- name: id
|
|
||||||
value: ""
|
|
||||||
type: path
|
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
{
|
{
|
||||||
"isActive": true,
|
"isActive": {{IsActive}},
|
||||||
"isAdmin": false
|
"isAdmin": {{IsAdmin}},
|
||||||
|
"email": "{{Email}}"
|
||||||
}
|
}
|
||||||
auth: inherit
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: UserID
|
||||||
|
value: ""
|
||||||
|
- name: IsActive
|
||||||
|
value: ""
|
||||||
|
- name: IsAdmin
|
||||||
|
value: ""
|
||||||
|
- name: Email
|
||||||
|
value: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
timeout: 0
|
timeout: 0
|
||||||
|
|||||||
8
API Tests/BGApp/environments/BGApp.yml
Normal file
8
API Tests/BGApp/environments/BGApp.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
name: BGApp
|
||||||
|
variables:
|
||||||
|
- name: BEARER_TOKEN
|
||||||
|
value: ""
|
||||||
|
- name: REFRESH_COOKIE
|
||||||
|
value: ""
|
||||||
|
- name: BASE_URL
|
||||||
|
value: http://localhost:3000
|
||||||
@@ -17,7 +17,7 @@ config:
|
|||||||
request:
|
request:
|
||||||
auth:
|
auth:
|
||||||
type: bearer
|
type: bearer
|
||||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJNUFJLTFIiLCJjbGFpbXMiOlsiQURNSU4iLCJVU0VSU19DUkVBVEUiLCJVU0VSU19TRUxGX1JFQUQiLCJVU0VSU19TRUxGX1VQREFURSIsIlVTRVJTX1NFTEZfREVMRVRFIiwiVVNFUlNfT1RIRVJfUkVBRCIsIlVTRVJTX09USEVSX1VQREFURSJdLCJpYXQiOjE3NzE2ODcxNzAsImV4cCI6MTgwMzIyMzE3MH0.inf1q3LTMuTkzLI-lEezYduPCpidJDaqsWZNNIY_doE
|
token: "{{BEARER_TOKEN}}"
|
||||||
actions:
|
actions:
|
||||||
- type: set-variable
|
- type: set-variable
|
||||||
phase: after-response
|
phase: after-response
|
||||||
|
|||||||
Reference in New Issue
Block a user