Added API Tests
This commit is contained in:
23
API Tests/BGApp/User/Create.yml
Normal file
23
API Tests/BGApp/User/Create.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
info:
|
||||
name: Create
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: http://localhost:3000/api/user
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"email": "Test User",
|
||||
"password": "Test123",
|
||||
"playerId": "enRe"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
19
API Tests/BGApp/User/Delete.yml
Normal file
19
API Tests/BGApp/User/Delete.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
info:
|
||||
name: Delete
|
||||
type: http
|
||||
seq: 4
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: http://localhost:3000/api/user/:id
|
||||
params:
|
||||
- name: id
|
||||
value: ""
|
||||
type: path
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
19
API Tests/BGApp/User/Get.yml
Normal file
19
API Tests/BGApp/User/Get.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
info:
|
||||
name: Get
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: http://localhost:3000/api/user/:id
|
||||
params:
|
||||
- name: id
|
||||
value: ejRe
|
||||
type: path
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
26
API Tests/BGApp/User/Update.yml
Normal file
26
API Tests/BGApp/User/Update.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
info:
|
||||
name: Update
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: PATCH
|
||||
url: http://localhost:3000/api/user/:id
|
||||
params:
|
||||
- name: id
|
||||
value: ""
|
||||
type: path
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"isActive": true,
|
||||
"isAdmin": false
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
7
API Tests/BGApp/User/folder.yml
Normal file
7
API Tests/BGApp/User/folder.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: User
|
||||
type: folder
|
||||
seq: 3
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
Reference in New Issue
Block a user