5 changed files with 185 additions and 9 deletions
@ -0,0 +1,158 @@ |
|||||
|
{ |
||||
|
"openapi": "3.0.1", |
||||
|
"info": { |
||||
|
"title": "ooya.ga_api", |
||||
|
"version": "1.0" |
||||
|
}, |
||||
|
"paths": { |
||||
|
"/api/v1/version": { |
||||
|
"get": { |
||||
|
"tags": [ |
||||
|
"Api" |
||||
|
], |
||||
|
"operationId": "version", |
||||
|
"responses": { |
||||
|
"200": { |
||||
|
"description": "Success", |
||||
|
"content": { |
||||
|
"text/plain": { |
||||
|
"schema": { |
||||
|
"type": "string" |
||||
|
} |
||||
|
}, |
||||
|
"application/json": { |
||||
|
"schema": { |
||||
|
"type": "string" |
||||
|
} |
||||
|
}, |
||||
|
"text/json": { |
||||
|
"schema": { |
||||
|
"type": "string" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"/api/v1/game": { |
||||
|
"get": { |
||||
|
"tags": [ |
||||
|
"Api" |
||||
|
], |
||||
|
"operationId": "game", |
||||
|
"responses": { |
||||
|
"200": { |
||||
|
"description": "Success", |
||||
|
"content": { |
||||
|
"text/plain": { |
||||
|
"schema": { |
||||
|
"$ref": "#/components/schemas/GameDto" |
||||
|
} |
||||
|
}, |
||||
|
"application/json": { |
||||
|
"schema": { |
||||
|
"$ref": "#/components/schemas/GameDto" |
||||
|
} |
||||
|
}, |
||||
|
"text/json": { |
||||
|
"schema": { |
||||
|
"$ref": "#/components/schemas/GameDto" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"/api/v1/turn": { |
||||
|
"get": { |
||||
|
"tags": [ |
||||
|
"Api" |
||||
|
], |
||||
|
"operationId": "turn", |
||||
|
"parameters": [ |
||||
|
{ |
||||
|
"name": "gameGuid", |
||||
|
"in": "query", |
||||
|
"schema": { |
||||
|
"type": "string" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"name": "witchGuid", |
||||
|
"in": "query", |
||||
|
"schema": { |
||||
|
"type": "string" |
||||
|
} |
||||
|
} |
||||
|
], |
||||
|
"responses": { |
||||
|
"200": { |
||||
|
"description": "Success", |
||||
|
"content": { |
||||
|
"text/plain": { |
||||
|
"schema": { |
||||
|
"$ref": "#/components/schemas/GameDto" |
||||
|
} |
||||
|
}, |
||||
|
"application/json": { |
||||
|
"schema": { |
||||
|
"$ref": "#/components/schemas/GameDto" |
||||
|
} |
||||
|
}, |
||||
|
"text/json": { |
||||
|
"schema": { |
||||
|
"$ref": "#/components/schemas/GameDto" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"components": { |
||||
|
"schemas": { |
||||
|
"GameDto": { |
||||
|
"type": "object", |
||||
|
"properties": { |
||||
|
"date": { |
||||
|
"type": "string", |
||||
|
"format": "date-time" |
||||
|
}, |
||||
|
"guid": { |
||||
|
"type": "string", |
||||
|
"nullable": true |
||||
|
}, |
||||
|
"score": { |
||||
|
"type": "integer", |
||||
|
"format": "int32" |
||||
|
}, |
||||
|
"witches": { |
||||
|
"type": "array", |
||||
|
"items": { |
||||
|
"$ref": "#/components/schemas/WitchDto" |
||||
|
}, |
||||
|
"nullable": true |
||||
|
} |
||||
|
}, |
||||
|
"additionalProperties": false |
||||
|
}, |
||||
|
"WitchDto": { |
||||
|
"type": "object", |
||||
|
"properties": { |
||||
|
"guid": { |
||||
|
"type": "string", |
||||
|
"nullable": true |
||||
|
}, |
||||
|
"position": { |
||||
|
"type": "integer", |
||||
|
"format": "int32" |
||||
|
} |
||||
|
}, |
||||
|
"additionalProperties": false |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue