{
  "openapi": "3.1.0",
  "info": {
    "title": "Ask 운세 API",
    "version": "1.3.3",
    "description": "국내 운세 서비스 데이터셋, 방문 추이, 후기 코드 검사, 만세력"
  },
  "servers": [
    {
      "url": "https://korean-fortune.com"
    }
  ],
  "paths": {
    "/api/services": {
      "get": {
        "operationId": "searchServices",
        "summary": "서비스 검색",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pricing",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "login",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ai",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "segment",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/services/{id}": {
      "get": {
        "operationId": "getService",
        "summary": "서비스 상세",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/api/route": {
      "get": {
        "operationId": "routeQuestion",
        "summary": "고민을 분야와 서비스로 연결",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/rank": {
      "get": {
        "operationId": "trafficRanking",
        "summary": "방문 순위와 등락",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "visits",
                "growth",
                "decline"
              ]
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/reviews": {
      "get": {
        "operationId": "checkReviews",
        "summary": "후기 코드 검사",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "verdict",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/saju": {
      "get": {
        "operationId": "calculateSaju",
        "summary": "사주 원국",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "time",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}