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/auth/login"
url: "{{BASE_URL}}/{{SECTOR}}/login"
headers:
- name: Content-Type
value: application/json

View File

@@ -5,7 +5,7 @@ info:
http:
method: GET
url: "{{BASE_URL}}/api/auth/token"
url: "{{BASE_URL}}/{{SECTOR}}/token"
headers:
- name: Cookie
value: "{{REFRESH_COOKIE}}"

View File

@@ -2,3 +2,8 @@ info:
name: Auth
type: folder
seq: 1
request:
variables:
- name: SECTOR
value: auth

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

View File

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

View File

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

View File

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

View File

@@ -5,7 +5,7 @@ info:
http:
method: GET
url: "{{BASE_URL}}/api/game/search/{{Query}}/{{PageSize}}/{{Page}}"
url: "{{BASE_URL}}/{{SECTOR}}/search/{{Query}}/{{PageSize}}/{{Page}}"
auth: inherit
runtime:
@@ -13,9 +13,9 @@ runtime:
- name: Query
value: test
- name: PageSize
value: "2"
value: "5"
- name: Page
value: "2"
value: "1"
settings:
encodeUrl: true

View File

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

View File

@@ -1,7 +1,10 @@
info:
name: Game
type: folder
seq: 4
seq: 1
request:
auth: inherit
variables:
- name: SECTOR
value: games

View File

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

View File

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

View File

@@ -5,3 +5,6 @@ info:
request:
auth: inherit
variables:
- name: SECTOR
value: invites

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,10 @@
info:
name: User
type: folder
seq: 3
seq: 1
request:
auth: inherit
variables:
- name: SECTOR
value: users

View File

@@ -5,4 +5,4 @@ variables:
- name: REFRESH_COOKIE
value: ""
- name: BASE_URL
value: http://localhost:3000
value: http://localhost:3000/api