Download OpenAPI specification:Download
HUKUWARAI JAPAN
新しいゲームを作成する
name required | string ゲーム名 |
answer_url required | string 正解画像 URL |
{- "name": "string",
- "answer_url": "string"
}
{- "id": 0,
- "name": "string",
- "started": false,
- "finished": false,
- "answer_url": "string"
}
対象のゲームデータを変更する
gameId required | integer <int32> 対象のゲームのID |
id | integer <int32> ゲームの一意な識別子 |
name | string ゲームの名前 |
started | boolean Default: false ゲームが開始しているかどうかを示す |
finished | boolean Default: false ゲームが終了しているかどうかを示す |
answer_url | string ゲームの正解画像のURL |
{- "id": 0,
- "name": "string",
- "started": false,
- "finished": false,
- "answer_url": "string"
}
{- "id": 0,
- "name": "string",
- "started": false,
- "finished": false,
- "answer_url": "string"
}
プレイヤーを作成します
gameId required | integer <int32> 対象のゲームのID |
name required | string プレイヤー名 |
{- "name": "string"
}
{- "id": 0,
- "name": "string",
- "game_id": 0
}
レンダリング結果に対して投票する
gameId required | integer <int32> 対象のゲームのID |
player_id required | integer <int32> 投票するプレイヤーのID |
{- "player_id": 0
}
{- "status": "ok"
}
ゲーム中に変更されたコードのスコアを計算します
gameId required | integer <int32> 対象のゲームのID |
code required | string ソースコード |
player_id required | integer <int32> プレイ中のプレイヤーのID |
{- "code": "string",
- "player_id": 0
}
{- "id": 0,
- "player_id": 0,
- "game_id": 0,
- "score": 0.1,
- "code": "string",
- "rendered_url": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
[- {
- "player_id": 0,
- "scores": [
- {
- "id": 0,
- "player_id": 0,
- "game_id": 0,
- "score": 0.1,
- "code": "string",
- "rendered_url": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
]