Fixed some behaviour in Elo calculation. Began implement match logic.
This commit is contained in:
35
API Tests/BGApp/Matches/Create.yml
Normal file
35
API Tests/BGApp/Matches/Create.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
info:
|
||||||
|
name: Create
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: POST
|
||||||
|
url: "{{BASE_URL}}/{{SECTOR}}"
|
||||||
|
body:
|
||||||
|
type: json
|
||||||
|
data: |-
|
||||||
|
{
|
||||||
|
"gameId": "RM089N",
|
||||||
|
"participants": [
|
||||||
|
{"playerId": "Q3M1PR", "standing": 0},
|
||||||
|
{"playerId": "539DPX", "standing": 1},
|
||||||
|
{"playerId": "JZ7939", "standing": 2}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: Email
|
||||||
|
value: ""
|
||||||
|
- name: Password
|
||||||
|
value: ""
|
||||||
|
- name: PlayerID
|
||||||
|
value: ""
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
20
API Tests/BGApp/Matches/Delete.yml
Normal file
20
API Tests/BGApp/Matches/Delete.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
info:
|
||||||
|
name: Delete
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: DELETE
|
||||||
|
url: "{{BASE_URL}}/{{SECTOR}}/{{UserID}}"
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: UserID
|
||||||
|
value: ""
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
20
API Tests/BGApp/Matches/Get.yml
Normal file
20
API Tests/BGApp/Matches/Get.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
info:
|
||||||
|
name: Get
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: GET
|
||||||
|
url: "{{BASE_URL}}/{{SECTOR}}/{{MatchID}}"
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
variables:
|
||||||
|
- name: MatchID
|
||||||
|
value: 9YQ84M
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
10
API Tests/BGApp/Matches/folder.yml
Normal file
10
API Tests/BGApp/Matches/folder.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
info:
|
||||||
|
name: Matches
|
||||||
|
type: folder
|
||||||
|
seq: 1
|
||||||
|
|
||||||
|
request:
|
||||||
|
auth: inherit
|
||||||
|
variables:
|
||||||
|
- name: SECTOR
|
||||||
|
value: matches
|
||||||
Reference in New Issue
Block a user