{
  "post": {
    "tags": ["AI"],
    "summary": "Generate quotes from topic (V2 - Enhanced)",
    "description": "Enhanced version of quote generation with improved formatting and tag generation",
    "security": [
      {
        "ApiKeyAuth": []
      }
    ],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "../../components/schemas/GenerateQuotesRequest.json"
          }
        }
      }
    },
    "responses": {
      "200": {
        "summary": "Successful Operation.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Quotes generated successfully"
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "generatedQuotes": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "example": [
                        ["WORK", "HARD"],
                        ["DREAM", "BIG"],
                        ["STAY", "STRONG"]
                      ]
                    },
                    "tagName": {
                      "type": "string",
                      "example": "```json\n[\"INSPIRE\", \"CREATE\", \"GROW\"]\n```"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "400": {
        "summary": "Bad Request.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Bad Request."
                }
              }
            }
          }
        }
      },
      "401": {
        "summary": "Unauthorized.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "API Key missing or invalid"
                }
              }
            }
          }
        }
      },
      "500": {
        "summary": "Internal Server Error.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Internal server error"
                }
              }
            }
          }
        }
      }
    }
  }
}
