Finished initial implementation of circle endpoints
This commit is contained in:
30
API Tests/BGApp/Circle/Create.yml
Normal file
30
API Tests/BGApp/Circle/Create.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
info:
|
||||
name: Create
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{BASE_URL}}/{{SECTOR}}"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"name": "{{Name}}",
|
||||
"isPublic": {{IsPublic}},
|
||||
"colour": "#FFFFFF"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: Name
|
||||
value: Test Private Circle
|
||||
- name: IsPublic
|
||||
value: "false"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
20
API Tests/BGApp/Circle/Delete.yml
Normal file
20
API Tests/BGApp/Circle/Delete.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
info:
|
||||
name: Delete
|
||||
type: http
|
||||
seq: 4
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CircleID}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: CircleID
|
||||
value: 6Z4214
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
20
API Tests/BGApp/Circle/Get.yml
Normal file
20
API Tests/BGApp/Circle/Get.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
info:
|
||||
name: Get
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CircleID}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: CircleID
|
||||
value: P17GOJ
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
24
API Tests/BGApp/Circle/Search.yml
Normal file
24
API Tests/BGApp/Circle/Search.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
info:
|
||||
name: Search
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/search/{{Query}}/{{PageSize}}/{{Page}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: Query
|
||||
value: test
|
||||
- name: PageSize
|
||||
value: "5"
|
||||
- name: Page
|
||||
value: "1"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
28
API Tests/BGApp/Circle/Update.yml
Normal file
28
API Tests/BGApp/Circle/Update.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
info:
|
||||
name: Update
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: PATCH
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CircleID}}"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"name":"{{Name}}"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: CircleID
|
||||
value: 6Z4214
|
||||
- name: Name
|
||||
value: Test update
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
10
API Tests/BGApp/Circle/folder.yml
Normal file
10
API Tests/BGApp/Circle/folder.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
info:
|
||||
name: Circle
|
||||
type: folder
|
||||
seq: 1
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
variables:
|
||||
- name: SECTOR
|
||||
value: circles
|
||||
Reference in New Issue
Block a user