|
|
@@ -0,0 +1,50 @@
|
|
|
+operationId: gameGetOne
|
|
|
+summary: Get One
|
|
|
+security:
|
|
|
+ - UserAuth: [tokens]
|
|
|
+description: Retrieve all necessary data for a single game
|
|
|
+tags: [Game]
|
|
|
+parameters:
|
|
|
+ - name: game_id
|
|
|
+ in: path
|
|
|
+ description: Game ID
|
|
|
+ required: true
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ format: uuid
|
|
|
+ example: 019ec246-dd08-7e1b-ba4e-e941d8ba2206
|
|
|
+
|
|
|
+responses:
|
|
|
+ "200":
|
|
|
+ description: Data fetched
|
|
|
+ content:
|
|
|
+ application/json:
|
|
|
+ schema:
|
|
|
+ type: object
|
|
|
+ properties:
|
|
|
+ game:
|
|
|
+ $ref: "#/components/schemas/Game"
|
|
|
+ character:
|
|
|
+ $ref: "#/components/schemas/Character"
|
|
|
+ sessions:
|
|
|
+ type: array
|
|
|
+ items:
|
|
|
+ $ref: "#/components/schemas/Session"
|
|
|
+ turns:
|
|
|
+ type: array
|
|
|
+ items:
|
|
|
+ $ref: "#/components/schemas/Turn"
|
|
|
+ remaining_tokens:
|
|
|
+ type: number
|
|
|
+ description: Number of tokens remaining for user
|
|
|
+ example: 873042
|
|
|
+ "400":
|
|
|
+ $ref: "#/components/responses/400"
|
|
|
+ "401":
|
|
|
+ $ref: "#/components/responses/401"
|
|
|
+ "403":
|
|
|
+ $ref: "#/components/responses/403"
|
|
|
+ "404":
|
|
|
+ $ref: "#/components/responses/404"
|
|
|
+ "500":
|
|
|
+ $ref: "#/components/responses/500"
|