知识卡片
API文档的外围信息
操作定义解释怎样调用,文档元数据帮助用户判断在哪里求助、适用什么许可及哪里有进一步说明。OpenAPI 用 info.contact 与 info.license 发布前两项,用 externalDocs 引用补充材料。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Preparing and hosting API documentation 8.2 Adding metadata to the definition · 查看原书依据
We’ll be adding these fields to the info and externalDocs sections of the definition. We have already created this section, as it was required for our very basic metadata, such as title and version, without which it would be very difficult to
参考来源
- 位置:《Designing APIs with Swagger and OpenAPI》第08章《Preparing and hosting API documentation》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch08.htm,阅读块 42)
- 结论依据:本节把原有标题版本扩展为维护联系方式、许可和外部资料。
- 原始内容:We’ll be adding these fields to the info and externalDocs sections of the definition. We have already created this section, as it was required for our very basic metadata, such as title and version, without which it would be very difficult to