create.yaml 966 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. operationId: gameCreate
  2. summary: Create
  3. security:
  4. - UserAuth: [tokens]
  5. description: Create a new game
  6. tags: [Game]
  7. requestBody:
  8. content:
  9. application/json:
  10. schema:
  11. type: object
  12. required:
  13. - title
  14. - game_context
  15. properties:
  16. title:
  17. type: string
  18. description: Title for the game
  19. example: Demon Barber of Fleet Street
  20. game_context:
  21. type: string
  22. description: Any information/context that the user wants to provide for the running of the overall game.
  23. example: Lorem Ipsum, etc...
  24. responses:
  25. "200":
  26. description: New game created
  27. content:
  28. application/json:
  29. schema:
  30. $ref: "#/components/schemas/Game"
  31. "400":
  32. $ref: "#/components/responses/400"
  33. "401":
  34. $ref: "#/components/responses/401"
  35. "403":
  36. $ref: "#/components/responses/403"
  37. "500":
  38. $ref: "#/components/responses/500"