fix(middleware): update paths for bot generation and stockfish configuration
Build & Test (NowChessSystems) TeamCity build failed
Build & Test (NowChessSystems) TeamCity build failed
refactor(bru): standardize authentication settings across requests chore: add coordinator base URL to configuration files
This commit is contained in:
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/account
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 2
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/account/login
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -7,7 +7,12 @@ meta {
|
||||
get {
|
||||
url: {{accountBaseUrl}}/account/me
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 4
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
get {
|
||||
url: {{accountBaseUrl}}/account/{{username}}
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 5
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/account/bots
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -7,7 +7,12 @@ meta {
|
||||
get {
|
||||
url: {{accountBaseUrl}}/account/bots
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 7
|
||||
}
|
||||
|
||||
http {
|
||||
method: PUT
|
||||
put {
|
||||
url: {{accountBaseUrl}}/account/bots/{{botId}}
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 8
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/account/bots/{{botId}}/rotate-token
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 9
|
||||
}
|
||||
|
||||
http {
|
||||
method: DELETE
|
||||
delete {
|
||||
url: {{accountBaseUrl}}/account/bots/{{botId}}
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 10
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
get {
|
||||
url: {{accountBaseUrl}}/account/official-bots
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 11
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/account/{{userId}}/ban
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 12
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/account/{{userId}}/unban
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/challenge/{{username}}
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -7,7 +7,12 @@ meta {
|
||||
get {
|
||||
url: {{accountBaseUrl}}/challenge
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 3
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
get {
|
||||
url: {{accountBaseUrl}}/challenge/{{challengeId}}
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 4
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/challenge/{{challengeId}}/accept
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 5
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/challenge/{{challengeId}}/decline
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 6
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/challenge/{{challengeId}}/cancel
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/challenge/official/{{botName}}?difficulty={{difficulty}}&color={{color}}
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
@@ -15,7 +20,7 @@ headers {
|
||||
Accept: application/json
|
||||
}
|
||||
|
||||
notes {
|
||||
docs {
|
||||
Query Parameters:
|
||||
- difficulty: 1000-2800 (ELO)
|
||||
- color: white | black | random
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 2
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{accountBaseUrl}}/account/official-bots
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,10 +4,15 @@ meta {
|
||||
seq: 3
|
||||
}
|
||||
|
||||
http {
|
||||
method: DELETE
|
||||
delete {
|
||||
url: {{accountBaseUrl}}/account/official-bots/{{botId}}
|
||||
auth: none
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -4,9 +4,13 @@ meta {
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/draw/offer
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -4,9 +4,13 @@ meta {
|
||||
seq: 2
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/draw/accept
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -4,9 +4,13 @@ meta {
|
||||
seq: 3
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/draw/decline
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -4,9 +4,13 @@ meta {
|
||||
seq: 4
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/draw/claim
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -4,9 +4,13 @@ meta {
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
get {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/export/fen
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -4,9 +4,13 @@ meta {
|
||||
seq: 2
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
get {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/export/pgn
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{baseUrl}}/api/board/game
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -7,7 +7,12 @@ meta {
|
||||
get {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
|
||||
@@ -4,9 +4,13 @@ meta {
|
||||
seq: 4
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/resign
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -4,11 +4,15 @@ meta {
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
post {
|
||||
url: {{baseUrl}}/api/board/game/import/fen
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
headers {
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: List Instances
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
url: {{baseUrl}}/coordinator/instances
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: Get Metrics
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
url: {{baseUrl}}/coordinator/metrics
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: Rebalance
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
url: {{baseUrl}}/coordinator/rebalance
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: Failover
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
url: {{baseUrl}}/coordinator/failover/{{instanceId}}
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: Scale Up
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
url: {{baseUrl}}/coordinator/scale-up
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: Scale Down
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
http {
|
||||
method: POST
|
||||
url: {{baseUrl}}/coordinator/scale-down
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
meta {
|
||||
name: coordinator
|
||||
seq: 4
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
vars {
|
||||
baseUrl: http://localhost:8080
|
||||
baseUrl: http://localhost:8080/api
|
||||
wsBaseUrl: ws://localhost:8084
|
||||
ioBaseUrl: http://localhost:8080
|
||||
ioBaseUrl: http://localhost:8080/api
|
||||
accountBaseUrl: http://localhost:8083/api
|
||||
storeBaseUrl: http://localhost:8085
|
||||
coordinatorBaseUrl: http://localhost:8086
|
||||
token: your_jwt_token_here
|
||||
adminToken: your_admin_jwt_token_here
|
||||
botToken: your_bot_jwt_token_here
|
||||
|
||||
@@ -4,4 +4,5 @@ vars {
|
||||
ioBaseUrl: https://nowchess.janis-eccarius.de/api
|
||||
accountBaseUrl: https://nowchess.janis-eccarius.de/api
|
||||
storeBaseUrl: https://nowchess.janis-eccarius.de/api
|
||||
coordinatorBaseUrl: http://localhost:8086
|
||||
}
|
||||
|
||||
@@ -4,4 +4,5 @@ vars {
|
||||
ioBaseUrl: https://st.nowchess.janis-eccarius.de/api
|
||||
accountBaseUrl: https://st.nowchess.janis-eccarius.de/api
|
||||
storeBaseUrl: https://st.nowchess.janis-eccarius.de/api
|
||||
coordinatorBaseUrl: http://localhost:8086
|
||||
}
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
meta {
|
||||
name: Game WebSocket
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
url: {{wsBaseUrl}}/api/board/game/{{gameId}}/ws
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Bearer {{token}}
|
||||
Connection: Upgrade
|
||||
Upgrade: websocket
|
||||
}
|
||||
|
||||
notes {
|
||||
WebSocket connection for real-time game updates.
|
||||
|
||||
Local: ws://localhost:8084/api/board/game/{{gameId}}/ws
|
||||
Staging: wss://st.nowchess.janis-eccarius.de/ws/api/board/game/{{gameId}}/ws
|
||||
Prod: wss://nowchess.janis-eccarius.de/ws/api/board/game/{{gameId}}/ws
|
||||
|
||||
Message Types:
|
||||
- CONNECTED: Connection established
|
||||
- MOVE: Player move
|
||||
- GAME_STATE: Full state update
|
||||
- ERROR: Error message
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
meta {
|
||||
name: User WebSocket
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
url: {{wsBaseUrl}}/api/user/ws
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Bearer {{token}}
|
||||
Connection: Upgrade
|
||||
Upgrade: websocket
|
||||
}
|
||||
|
||||
notes {
|
||||
WebSocket connection for user notifications.
|
||||
|
||||
Local: ws://localhost:8084/api/user/ws
|
||||
Staging: wss://st.nowchess.janis-eccarius.de/ws/api/user/ws
|
||||
Prod: wss://nowchess.janis-eccarius.de/ws/api/user/ws
|
||||
|
||||
Message Types:
|
||||
- CONNECTED: Connection established
|
||||
- CHALLENGE: Challenge received
|
||||
- GAME_INVITE: Game invitation
|
||||
- NOTIFICATION: General notification
|
||||
- ERROR: Error message
|
||||
}
|
||||
Reference in New Issue
Block a user