create.yaml 756 B

123456789101112131415161718192021222324252627282930313233
  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. $ref: "#/components/schemas/Session"
  23. "400":
  24. $ref: "#/components/responses/400"
  25. "401":
  26. $ref: "#/components/responses/401"
  27. "403":
  28. $ref: "#/components/responses/403"
  29. "404":
  30. $ref: "#/components/responses/404"
  31. "500":
  32. $ref: "#/components/responses/500"