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/player"
url: "{{BASE_URL}}/{{SECTOR}}"
body:
type: json
data: |-

View File

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

View File

@@ -5,7 +5,7 @@ info:
http:
method: GET
url: "{{BASE_URL}}/api/player/{{PlayerID}}"
url: "{{BASE_URL}}/{{SECTOR}}/{{PlayerID}}"
auth: inherit
runtime:

View File

@@ -5,9 +5,16 @@ info:
http:
method: GET
url: "{{BASE_URL}}/api/player/list"
url: "{{BASE_URL}}/{{SECTOR}}/list/{{PageSize}}/{{Page}}"
auth: inherit
runtime:
variables:
- name: PageSize
value: "100"
- name: Page
value: "1"
settings:
encodeUrl: true
timeout: 0

View File

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

View File

@@ -1,7 +1,10 @@
info:
name: Players
type: folder
seq: 2
seq: 1
request:
auth: inherit
variables:
- name: SECTOR
value: players