feat: add API endpoints for game creation, draw offers, FEN/PGN import/export, and move actions
Build & Test (NowChessSystems) TeamCity build failed

This commit is contained in:
2026-04-15 10:14:29 +02:00
parent 52197125f7
commit 3bad8c64d3
19 changed files with 317 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
meta {
name: Create game
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/board/game
body: json
auth: none
}
headers {
Accept: application/json
Content-Type: application/json
}
body:json {
{
"white": {
"id": "player1",
"displayName": "Alice"
},
"black": {
"id": "player2",
"displayName": "Bob"
}
}
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: Get game
type: http
seq: 2
}
get {
url: {{baseUrl}}/api/board/game/{{gameId}}
body: none
auth: none
}
headers {
Accept: application/json
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: Stream game (NDJSON)
type: http
seq: 3
}
get {
url: {{baseUrl}}/api/board/game/{{gameId}}/stream
body: none
auth: none
}
headers {
Accept: application/x-ndjson
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: Resign game
type: http
seq: 4
}
post {
url: {{baseUrl}}/api/board/game/{{gameId}}/resign
body: none
auth: none
}
headers {
Accept: application/json
}