info:
  description: |
    Game name generation based on certain types of games.

    **Authentication Options**:
    - Recommended: Bearer token via `Authorization` header.
    - Fallback (GET): `token` query parameter.
    - Fallback (POST): `apiKey` in JSON body.
  title: Dungen API
  version: 1.0.0
openapi: 3.0.0
paths:
  /api/v1/dungen:
    post:
      requestBody:
        content:
          application/json:
            schema:
              properties:
                amount:
                  type: integer
                apiKey:
                  type: string
                maxLength:
                  type: integer
                seedText:
                  type: string
                temperature:
                  type: number
                typeOfGeneration:
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  names:
                    items:
                      type: string
                    type: array
                type: object
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '429':
          description: Too many requests
      summary: Generate a game name.
    get:
      parameters:
        - in: query
          name: amount
          schema:
            type: integer
        - in: query
          name: maxLength
          schema:
            type: integer
        - in: query
          name: seedText
          schema:
            type: string
        - in: query
          name: temperature
          schema:
            type: number
        - in: query
          name: token
          schema:
            type: string
        - in: query
          name: typeOfGeneration
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  names:
                    items:
                      type: string
                    type: array
                type: object
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '429':
          description: Too many requests
      summary: Generate a game name.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

security:
  - bearerAuth: []  # Global security, but overridden per-path
servers:
- url: https://infinitode.netlify.app
