openapi: 3.0.1
info:
  title: 国内Coding Plan对比
  description: "国内主流 AI Coding Plan（AI编程订阅套餐）价格、模型、限额与性价比对比 JSON API。"
  version: "1.0.0"
servers:
  - url: https://coding.mcppla.net
paths:
  /api/plans.json:
    get:
      operationId: getCodingPlansJson
      summary: "获取完整 AI Coding Plan 对比数据 JSON"
      description: "返回收录的全部 AI 编程订阅套餐结构化数据，包含档位价格、首月优惠、配额、支持模型、工具与常见问题。"
      responses:
        "200":
          description: "AI Coding Plan 完整数据集"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PlansCatalogResponse"
  /api/plans:
    get:
      operationId: getCodingPlans
      summary: "获取 AI Coding Plan 对比列表（同 /api/plans.json）"
      description: "返回收录的全部 AI 编程订阅套餐结构化 JSON 数据。"
      responses:
        "200":
          description: "AI Coding Plan 完整数据集"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PlansCatalogResponse"
components:
  schemas:
    PlansCatalogResponse:
      type: object
      required: [site, categories, plans, faqs]
      properties:
        site:
          type: object
        categories:
          type: array
          items:
            type: object
        plans:
          type: array
          items:
            type: object
        faqs:
          type: array
          items:
            type: object
