Stylish MBTI Fashion Advisor

Stylish MBTI Fashion Advisor · GPT Actions

키워드 기반 콘텐츠 검색 API

사용자 질문에서 핵심 키워드를 추출하고, 이를 기반으로 관련 콘텐츠를 검색합니다.

  • POST /analyze-question사용자 질문 분석 및 키워드 추출

    사용자의 질문을 분석하여 두 가지 주요 키워드를 추출합니다.

  • POST /search-content키워드를 기반으로 콘텐츠 검색

    추출된 키워드를 기반으로 가장 관련성 높은 콘텐츠를 검색합니다.

原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "title": "키워드 기반 콘텐츠 검색 API",
    "version": "1.0.0",
    "description": "사용자 질문에서 핵심 키워드를 추출하고, 이를 기반으로 관련 콘텐츠를 검색합니다."
  },
  "servers": [
    {
      "url": "https://developers.pinterest.com/docs/api/v5/"
    }
  ],
  "paths": {
    "/analyze-question": {
      "post": {
        "summary": "사용자 질문 분석 및 키워드 추출",
        "description": "사용자의 질문을 분석하여 두 가지 주요 키워드를 추출합니다.",
        "operationId": "analyzeQuestion",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string",
                    "example": "What are the latest trends in technology?"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "성공적인 응답",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "keywords": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "잘못된 요청"
          },
          "500": {
            "description": "서버 오류"
          }
        }
      }
    },
    "/search-content": {
      "post": {
        "summary": "키워드를 기반으로 콘텐츠 검색",
        "description": "추출된 키워드를 기반으로 가장 관련성 높은 콘텐츠를 검색합니다.",
        "operationId": "searchContent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "성공적인 응답",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "잘못된 요청"
          },
          "500": {
            "description": "서버 오류"
          }
        }
      }
    }
  }
}