← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10296.b.3.a · 生成模型:未记录

由观测恢复契约草稿

理解等级:中级

存量接口先盘点,再从源码或授权的测试流量生成 OpenAPI 草稿。流量可由代理转成定义,也能先生成 HAR 再转换。采样只覆盖已见情形,应复核缺失的方法、反例和认证边界,保护敏感样本,再让草稿参与设计检查与治理。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 10 章 自定义 Lint 与安全检查》(10.2.12 Validating traffic in the gateway using OpenAPI;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-10.xhtml#p185) - 结论依据:原文说明在没有定义的存量系统中,可由代码或采集流量获得定义。 - 原始内容:I’ve discussed API security linting checks in your API definition file to detect vulnerabilities, but what if your API doesn’t have an OpenAPI definition available? Many organizations have APIs that haven’t been properly documented. A good place to start then is to document the API—it’s difficult to protect APIs you don’t know about.