Fix client deserialization

This commit is contained in:
2025-12-14 22:01:18 +01:00
parent 79fb2aea38
commit 9ee3539eeb
11 changed files with 275 additions and 288 deletions

View File

@@ -6,17 +6,7 @@ info:
servers:
- url: "https://boardmate_api"
paths:
/games:
get:
summary: "GET games"
operationId: "retrieveAllGames"
responses:
"200":
description: "OK"
content:
'*/*':
schema:
type: "object"
/games/{id}:
get:
summary: "GET games/{id}"
@@ -33,7 +23,7 @@ paths:
content:
'*/*':
schema:
$ref: "#/components/schemas/GameDto"
$ref: "#/components/schemas/ResponseBodyGameDto"
/create:
post:
summary: "POST create"
@@ -50,7 +40,7 @@ paths:
content:
'*/*':
schema:
type: "string"
$ref: "#/components/schemas/ResponseBodyString"
/moves/add/{gameId}:
post:
summary: "POST moves/add/{gameId}"
@@ -73,9 +63,36 @@ paths:
content:
'*/*':
schema:
type: "string"
$ref: "#/components/schemas/ResponseBodyString"
components:
schemas:
ResponseBodyGameDto:
type: "object"
properties:
data:
type: "object"
nullable: true
message:
type: "string"
nullable: true
success:
type: "boolean"
nullable: false
ResponseBodyString:
type: "object"
properties:
data:
type: "string"
nullable: true
message:
type: "string"
nullable: true
success:
type: "boolean"
nullable: false
GameDto:
type: "object"
properties: