|
@@ -0,0 +1,38 @@
|
|
|
|
|
+operationId: sessionCreate
|
|
|
|
|
+summary: Create
|
|
|
|
|
+security:
|
|
|
|
|
+ - UserAuth: [tokens]
|
|
|
|
|
+description: Create a new session. Will also be the first turn to set the scene.
|
|
|
|
|
+tags: [Session]
|
|
|
|
|
+parameters:
|
|
|
|
|
+ - name: game_id
|
|
|
|
|
+ in: path
|
|
|
|
|
+ description: Game ID
|
|
|
|
|
+ required: true
|
|
|
|
|
+ schema:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ format: uuid
|
|
|
|
|
+ example: 019eb91d-9820-7624-b22b-4e2423b1942b
|
|
|
|
|
+
|
|
|
|
|
+responses:
|
|
|
|
|
+ "200":
|
|
|
|
|
+ description: Session started
|
|
|
|
|
+ content:
|
|
|
|
|
+ application/json:
|
|
|
|
|
+ schema:
|
|
|
|
|
+ type: object
|
|
|
|
|
+ properties:
|
|
|
|
|
+ session:
|
|
|
|
|
+ $ref: "#/components/schemas/Session"
|
|
|
|
|
+ turn:
|
|
|
|
|
+ $ref: "#/components/schemas/Turn"
|
|
|
|
|
+ "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"
|