{
  "openapi": "3.0.3",
  "info": {
    "title": "OpenAIOPC Feed API",
    "version": "1.1.0",
    "description": "OPC 资讯精选公开接口（对齐 AIHOT 出口）。RSS：/feed/opc-selected.xml、opc-full.xml、opc-all.xml、opc-daily|weekly|monthly.xml、opc-category-{type}.xml"
  },
  "servers": [{ "url": "https://www.openaiopc.com" }],
  "paths": {
    "/feed/opc-selected.xml": {
      "get": { "summary": "精选 RSS 摘要", "responses": { "200": { "description": "RSS" } } }
    },
    "/feed/opc-full.xml": {
      "get": { "summary": "精选 RSS 全文（许可信源）", "responses": { "200": { "description": "RSS" } } }
    },
    "/feed/opc-all.xml": {
      "get": { "summary": "近 7 天全部动态 RSS", "responses": { "200": { "description": "RSS" } } }
    },
    "/api/v1/opc-feed/latest.php": {
      "get": {
        "summary": "最新精选",
        "parameters": [{ "name": "limit", "in": "query", "schema": { "type": "integer" } }],
        "responses": { "200": { "description": "OK" } }
      }
    },
    "/api/v1/opc-feed/search.php": {
      "get": {
        "summary": "搜索精选",
        "parameters": [
          { "name": "q", "in": "query", "schema": { "type": "string" } },
          { "name": "limit", "in": "query", "schema": { "type": "integer" } }
        ],
        "responses": { "200": { "description": "OK" } }
      }
    },
    "/api/v1/opc-feed/hot.php": {
      "get": { "summary": "热点事件", "responses": { "200": { "description": "OK" } } }
    },
    "/api/v1/opc-feed/story.php": {
      "get": {
        "summary": "事件详情",
        "parameters": [
          { "name": "id", "in": "query", "required": true, "schema": { "type": "integer" } },
          { "name": "order", "in": "query", "schema": { "type": "string", "enum": ["latest", "oldest"] } }
        ],
        "responses": { "200": { "description": "OK" } }
      }
    },
    "/api/v1/opc-feed/daily.php": {
      "get": { "summary": "日报", "responses": { "200": { "description": "OK" } } }
    },
    "/api/v1/opc-feed/weekly.php": {
      "get": { "summary": "周报", "responses": { "200": { "description": "OK" } } }
    },
    "/api/v1/opc-feed/monthly.php": {
      "get": { "summary": "月报", "responses": { "200": { "description": "OK" } } }
    },
    "/api/v1/opc-feed/topics.php": {
      "get": { "summary": "主题列表或主题条目", "responses": { "200": { "description": "OK" } } }
    },
    "/api/opc_feed_mcp.php": {
      "post": { "summary": "MCP Streamable HTTP", "responses": { "200": { "description": "JSON-RPC" } } }
    }
  }
}
