| 123456789101112131415161718192021222324252627282930313233343536373839 |
- operationId: gameCreate
- summary: Create
- security:
- - UserAuth: [tokens]
- description: Create a new game
- tags: [Game]
- requestBody:
- content:
- application/json:
- schema:
- type: object
- required:
- - title
- - game_context
- properties:
- title:
- type: string
- description: Title for the game
- example: Demon Barber of Fleet Street
- game_context:
- type: string
- description: Any information/context that the user wants to provide for the running of the overall game.
- example: Lorem Ipsum, etc...
- responses:
- "200":
- description: New game created
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Game"
- "400":
- $ref: "#/components/responses/400"
- "401":
- $ref: "#/components/responses/401"
- "403":
- $ref: "#/components/responses/403"
- "500":
- $ref: "#/components/responses/500"
|