You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
158 lines
3.4 KiB
158 lines
3.4 KiB
|
4 years ago
|
{
|
||
|
|
"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
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|