create.yaml 892 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. operationId: sessionCreate
  2. summary: Create
  3. security:
  4. - UserAuth: [tokens]
  5. description: Create a new session. Will also be the first turn to set the scene.
  6. tags: [Session]
  7. parameters:
  8. - name: game_id
  9. in: path
  10. description: Game ID
  11. required: true
  12. schema:
  13. type: string
  14. format: uuid
  15. example: 019eb91d-9820-7624-b22b-4e2423b1942b
  16. responses:
  17. "200":
  18. description: Session started
  19. content:
  20. application/json:
  21. schema:
  22. type: object
  23. properties:
  24. session:
  25. $ref: "#/components/schemas/Session"
  26. turn:
  27. $ref: "#/components/schemas/Turn"
  28. "400":
  29. $ref: "#/components/responses/400"
  30. "401":
  31. $ref: "#/components/responses/401"
  32. "403":
  33. $ref: "#/components/responses/403"
  34. "404":
  35. $ref: "#/components/responses/404"
  36. "500":
  37. $ref: "#/components/responses/500"