Tidied up Bruno files. Implemented builder utility to have more powerful route definitions.

This commit is contained in:
jd
2026-02-21 20:41:40 +00:00
parent ed942060a2
commit 3e9d61b8c6
42 changed files with 159 additions and 98 deletions

View File

@@ -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: |-

View File

@@ -5,7 +5,7 @@ info:
http:
method: POST
url: "{{BASE_URL}}/api/collection"
url: "{{BASE_URL}}/{{SECTOR}}"
body:
type: json
data: |-

View File

@@ -5,7 +5,7 @@ info:
http:
method: DELETE
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
url: "{{BASE_URL}}/{{SECTOR}}/{{CollectionID}}"
auth: inherit
runtime:

View File

@@ -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:

View File

@@ -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

View File

@@ -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: |-

View File

@@ -5,7 +5,7 @@ info:
http:
method: PATCH
url: "{{BASE_URL}}/api/collection/{{CollectionID}}"
url: "{{BASE_URL}}/{{SECTOR}}/{{CollectionID}}"
body:
type: json
data: |-

View File

@@ -1,7 +1,10 @@
info:
name: Collections
type: folder
seq: 6
seq: 1
request:
auth: inherit
variables:
- name: SECTOR
value: collections