Tidied up Bruno files. Implemented builder utility to have more powerful route definitions.
This commit is contained in:
@@ -5,7 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}/add"
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CollectionID}}/add"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
|
||||
@@ -5,7 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{BASE_URL}}/api/collection"
|
||||
url: "{{BASE_URL}}/{{SECTOR}}"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
|
||||
@@ -5,7 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CollectionID}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
|
||||
@@ -5,11 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||
params:
|
||||
- name: ""
|
||||
value: ""
|
||||
type: query
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CollectionID}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
|
||||
@@ -5,15 +5,15 @@ info:
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{BASE_URL}}/api/collection/list/{{PageSize}}/{{Page}}"
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/list/{{PageSize}}/{{Page}}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: PageSize
|
||||
value: "1"
|
||||
value: "5"
|
||||
- name: Page
|
||||
value: "0"
|
||||
value: "1"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
|
||||
@@ -5,7 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}/remove"
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CollectionID}}/remove"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
|
||||
@@ -5,7 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: PATCH
|
||||
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
|
||||
url: "{{BASE_URL}}/{{SECTOR}}/{{CollectionID}}"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
info:
|
||||
name: Collections
|
||||
type: folder
|
||||
seq: 6
|
||||
seq: 1
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
variables:
|
||||
- name: SECTOR
|
||||
value: collections
|
||||
|
||||
Reference in New Issue
Block a user