From 26151520679e418f97d72cf88fc5fbee97ac392d Mon Sep 17 00:00:00 2001 From: LQ63 Date: Sun, 12 Apr 2026 16:38:53 +0200 Subject: [PATCH] docs(core): NowChess API Spec Changed format of endpoints for easier bot implementation later on --- docs/api-spec.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/api-spec.yaml b/docs/api-spec.yaml index 596520d..8b20333 100644 --- a/docs/api-spec.yaml +++ b/docs/api-spec.yaml @@ -60,7 +60,7 @@ paths: # Game lifecycle # --------------------------------------------------------------------------- - /api/game: + /api/board/game: post: operationId: createGame tags: [game] @@ -90,7 +90,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/{gameId}: + /api/board/game/{gameId}: get: operationId: getGame tags: [game] @@ -112,7 +112,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/{gameId}/stream: + /api/board/game/{gameId}/stream: get: operationId: streamGame tags: [game] @@ -148,7 +148,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/{gameId}/resign: + /api/board/game/{gameId}/resign: post: operationId: resignGame tags: [game] @@ -176,7 +176,7 @@ paths: # Move-making # --------------------------------------------------------------------------- - /api/game/{gameId}/move/{uci}: + /api/board/game/{gameId}/move/{uci}: post: operationId: makeMove tags: [move] @@ -217,7 +217,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/{gameId}/moves: + /api/board/game/{gameId}/moves: get: operationId: getLegalMoves tags: [move] @@ -249,7 +249,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/{gameId}/undo: + /api/board/game/{gameId}/undo: post: operationId: undoMove tags: [move] @@ -277,7 +277,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/{gameId}/redo: + /api/board/game/{gameId}/redo: post: operationId: redoMove tags: [move] @@ -309,7 +309,7 @@ paths: # Draw handling # --------------------------------------------------------------------------- - /api/game/{gameId}/draw/{action}: + /api/board/game/{gameId}/draw/{action}: post: operationId: drawAction tags: [draw] @@ -351,7 +351,7 @@ paths: # Import # --------------------------------------------------------------------------- - /api/game/import/fen: + /api/board/game/import/fen: post: operationId: importFen tags: [import] @@ -380,7 +380,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/import/pgn: + /api/board/game/import/pgn: post: operationId: importPgn tags: [import] @@ -413,7 +413,7 @@ paths: # Export # --------------------------------------------------------------------------- - /api/game/{gameId}/export/fen: + /api/board/game/{gameId}/export/fen: get: operationId: exportFen tags: [export] @@ -436,7 +436,7 @@ paths: '429': $ref: '#/components/responses/TooManyRequests' - /api/game/{gameId}/export/pgn: + /api/board/game/{gameId}/export/pgn: get: operationId: exportPgn tags: [export]