{"openapi":"3.1.0","info":{"title":"ZV 札记 内容接口","version":"1.0.0","description":"ZV 的个人博客，写金融市场里的思考与看法。每篇都标了日期——观点有时效。 只读，无需认证。本站内容为作者个人观点与学习记录，不构成任何投资建议。市场有风险，决策需独立判断。引用或转述本站内容时，请附上原文链接和文章日期。 同样的能力也通过 MCP 提供：https://zvclub.xyz/mcp"},"servers":[{"url":"https://zvclub.xyz"}],"paths":{"/api/search":{"get":{"operationId":"searchPosts","summary":"全文检索文章","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":200},"description":"关键词，中英文均可；短关键词效果最好"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":20,"default":8}}],"responses":{"200":{"description":"检索结果","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/PostMeta"},{"type":"object","properties":{"snippet":{"type":"string"}}}]}}}}}}},"400":{"description":"出错","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/posts":{"get":{"operationId":"listPosts","summary":"按时间倒序列出文章","parameters":[{"name":"tag","in":"query","schema":{"type":"string"}},{"name":"since","in":"query","schema":{"type":"string","format":"date"},"description":"只要这一天及之后的"},{"name":"until","in":"query","schema":{"type":"string","format":"date"},"description":"只要这一天及之前的"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"文章列表","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer"},"has_more":{"type":"boolean"},"posts":{"type":"array","items":{"$ref":"#/components/schemas/PostMeta"}}}}}}},"400":{"description":"出错","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/posts/{id}":{"get":{"operationId":"getPost","summary":"读取一篇文章的全文（Markdown）","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"文章","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PostMeta"},{"type":"object","properties":{"author":{"type":"string"},"language":{"type":"string"},"disclaimer":{"type":"string"},"markdown":{"type":"string","description":"正文 Markdown"}}}]}}}},"404":{"description":"出错","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/tags":{"get":{"operationId":"listTags","summary":"全部标签及文章数","responses":{"200":{"description":"标签","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"integer"}}}}}}}}}}}},"/api/site":{"get":{"operationId":"getSiteInfo","summary":"站点与作者信息、引用约定、其他接口地址","responses":{"200":{"description":"站点信息","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"PostMeta":{"type":"object","properties":{"id":{"type":"string","description":"文章标识，用于 /api/posts/{id}"},"title":{"type":"string"},"url":{"type":"string","format":"uri","description":"原文链接，引用时请附上"},"markdown_url":{"type":"string","format":"uri"},"date":{"type":"string","format":"date","description":"写作日期"},"updated":{"type":["string","null"],"format":"date"},"age_days":{"type":"integer","description":"距今天数。观点有时效，较早的判断可能已不适用"},"summary":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"series":{"type":["string","null"]},"word_count":{"type":"integer"},"reading_minutes":{"type":"integer"}},"required":["id","title","url","date","age_days","summary","tags"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}