Tidied up Bruno files.
This commit is contained in:
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:
|
||||
method: POST
|
||||
url: http://localhost:3000/api/collection
|
||||
url: "{{BASE_URL}}/api/collection"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"name": "Invited player2"
|
||||
"name": "{{Name}}"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: Name
|
||||
value: ""
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
|
||||
@@ -5,13 +5,14 @@ info:
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: http://localhost:3000/api/collection/:id
|
||||
params:
|
||||
- name: id
|
||||
value: bmOe
|
||||
type: path
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: CollectionID
|
||||
value: ""
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
|
||||
@@ -5,13 +5,18 @@ info:
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: http://localhost:3000/api/collection/:id
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||
params:
|
||||
- name: id
|
||||
value: ejRe
|
||||
type: path
|
||||
- name: ""
|
||||
value: ""
|
||||
type: query
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: CollectionID
|
||||
value: ""
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
|
||||
@@ -5,9 +5,16 @@ info:
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: http://localhost:3000/api/collection/list
|
||||
url: "{{BASE_URL}}/api/collection/list/{{PageSize}}/{{Page}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: PageSize
|
||||
value: "1"
|
||||
- name: Page
|
||||
value: "0"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
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:
|
||||
method: PATCH
|
||||
url: http://localhost:3000/api/collection/:id
|
||||
params:
|
||||
- name: id
|
||||
value: bmOe
|
||||
type: path
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"name": "Test Player",
|
||||
"isRatingLocked": true,
|
||||
"canBeMultiple": false
|
||||
"name": "{{Name}}"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: CollectionID
|
||||
value: ""
|
||||
- name: Name
|
||||
value: ""
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
|
||||
Reference in New Issue
Block a user