{
  "openapi": "3.1.0",
  "info": {
    "title": "AISTIM public discovery data",
    "version": "1.0.0",
    "description": "Read-only public information. No authentication, private records, file submission or order endpoint."
  },
  "servers": [
    {
      "url": "https://aistim.cn"
    }
  ],
  "paths": {
    "/data/site.json": {
      "get": {
        "summary": "Website facts and contacts",
        "operationId": "siteData",
        "responses": {
          "200": {
            "description": "Public JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/catalogue.json": {
      "get": {
        "summary": "Multilingual product directory",
        "operationId": "catalogueData",
        "responses": {
          "200": {
            "description": "Public JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/pages.json": {
      "get": {
        "summary": "Canonical HTML and Markdown source index",
        "operationId": "pagesData",
        "responses": {
          "200": {
            "description": "Public JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/catalogue/{language}.json": {
      "get": {
        "operationId": "localizedCatalogue",
        "summary": "Localized public product facts",
        "parameters": [
          {
            "name": "language",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "zh",
                "en",
                "zh-hant",
                "ja",
                "ko",
                "vi",
                "th",
                "de",
                "fr",
                "ar",
                "es",
                "pt",
                "ru",
                "hi",
                "id"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public catalogue",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Unsupported language"
          }
        }
      }
    },
    "/en/policy/index.json": {
      "get": {
        "summary": "Published US–China policy exclusive insights (English)",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published articles and canonical source URLs; no drafts or administrative data."
          }
        }
      }
    },
    "/policy/index.json": {
      "get": {
        "summary": "Published US–China policy exclusive insights (Chinese)",
        "responses": {
          "200": {
            "description": "Published articles only."
          }
        }
      }
    },
    "/api/manual-downloads": {
      "get": {
        "summary": "Read cumulative ER + KAMA PDF download request counts",
        "responses": {
          "200": {
            "description": "Separate Chinese and English totals; repeated full-file GET requests count again."
          },
          "503": {
            "description": "Counter storage unavailable; no zero count is invented."
          }
        }
      }
    },
    "/data/cases.json": {
      "get": {
        "operationId": "caseEvidenceLanguages",
        "summary": "Supported public case languages and JSON sources",
        "responses": {
          "200": {
            "description": "Public case facts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/cases/{language}.json": {
      "get": {
        "operationId": "localizedCaseEvidence",
        "summary": "Localized public case summaries, verification scope and canonical sources",
        "responses": {
          "200": {
            "description": "Public case facts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "language",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "zh",
                "en",
                "zh-hant",
                "ja",
                "ko",
                "vi",
                "th",
                "de",
                "fr",
                "ar",
                "es",
                "pt",
                "ru",
                "hi",
                "id"
              ]
            }
          }
        ]
      }
    }
  }
}