create.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. operationId: turnCreate
  2. summary: Create
  3. security:
  4. - UserAuth: [tokens]
  5. description: Create a new turn
  6. tags: [Turn]
  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: 019ec14f-c42c-7ad2-a0fb-37f712eba704
  16. - name: session_id
  17. in: path
  18. description: Session ID
  19. required: true
  20. schema:
  21. type: string
  22. format: uuid
  23. example: 019ec150-72ef-7f9e-b164-6dbbcc045e29
  24. responses:
  25. "200":
  26. description: Turn created
  27. content:
  28. application/json:
  29. schema:
  30. type: object
  31. properties:
  32. turn:
  33. $ref: "#/components/schemas/Turn"
  34. tokens_remaining:
  35. type: number
  36. description: Tokens that the user has remaining
  37. example: 997364
  38. "400":
  39. $ref: "#/components/responses/400"
  40. "401":
  41. $ref: "#/components/responses/401"
  42. "403":
  43. $ref: "#/components/responses/403"
  44. "404":
  45. $ref: "#/components/responses/404"
  46. "500":
  47. $ref: "#/components/responses/500"