Fix client deserialization
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user