diff --git a/API Tests/BGApp/Matches/Create.yml b/API Tests/BGApp/Matches/Create.yml new file mode 100644 index 0000000..81e49e7 --- /dev/null +++ b/API Tests/BGApp/Matches/Create.yml @@ -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 diff --git a/API Tests/BGApp/Matches/Delete.yml b/API Tests/BGApp/Matches/Delete.yml new file mode 100644 index 0000000..2de044e --- /dev/null +++ b/API Tests/BGApp/Matches/Delete.yml @@ -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 diff --git a/API Tests/BGApp/Matches/Get.yml b/API Tests/BGApp/Matches/Get.yml new file mode 100644 index 0000000..4644842 --- /dev/null +++ b/API Tests/BGApp/Matches/Get.yml @@ -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 diff --git a/API Tests/BGApp/Matches/folder.yml b/API Tests/BGApp/Matches/folder.yml new file mode 100644 index 0000000..9a38b54 --- /dev/null +++ b/API Tests/BGApp/Matches/folder.yml @@ -0,0 +1,10 @@ +info: + name: Matches + type: folder + seq: 1 + +request: + auth: inherit + variables: + - name: SECTOR + value: matches