Added API Tests
This commit is contained in:
22
API Tests/BGApp/Invites/Accept.yml
Normal file
22
API Tests/BGApp/Invites/Accept.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: Accept
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: http://localhost:3000/api/invite/accept
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"inviteCode": "3ST6N8",
|
||||
"password": "test123"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
22
API Tests/BGApp/Invites/Create.yml
Normal file
22
API Tests/BGApp/Invites/Create.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: Create
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: http://localhost:3000/api/invite
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"email": "james+test2@dardry.com",
|
||||
"playerId": "boja"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
7
API Tests/BGApp/Invites/folder.yml
Normal file
7
API Tests/BGApp/Invites/folder.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: Invites
|
||||
type: folder
|
||||
seq: 5
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
Reference in New Issue
Block a user