api - 为什么 api 响应正文未显示在 postman 应用程序生成的文档中?

标签 api postman api-doc

我正在测试 apis usng postman连续然后生成 api 文档 使用 postman应用程序。

但问题是文档没有显示 api response我在 postman console 收到的.这是我收到的大部分回复 apis
enter image description here

我怎样才能在我的 api 文档中获得响应正文?

最佳答案

如果请求已保存到集合中,您可以使用 Save as example功能,位于响应正文的右上角。这将打开 example builder 并保存后,此响应正文将针对 API 文档中的请求显示。

enter image description here

可以在此处找到有关其工作原理的更多详细信息:

https://learning.getpostman.com/docs/postman/collections/examples/#how-your-examples-appear-in-postman-documentation

关于api - 为什么 api 响应正文未显示在 postman 应用程序生成的文档中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59451965/

相关文章:

twitter - 调用 Twitter API 导致 "Timestamp out of bounds"错误

documentation - Slate vs Swagger-哪个更好,哪个有更多选择?

json - 生成 swagger json 格式的 WebAPI 文档

Yii2 apidoc 不允许我将我的项目和 yii 框架添加到同一个文档中。

mysql - 使用NodeJS和MySQL无法通过id获取数据

java - 使用 Docker api 连接到容器后如何使用 stdin、stdout 和 stderr 流?

api - 如何以编程方式在 Google Docs 中创建文档?

python - 适用于 Python 的 LinkedIn API

php - Google Maps Elevation API 不返回结果 (JSON/PHP)

postman - 是否可以使用 htmlextra 或类似的东西生成 Postman Collection 运行的 HTML 报告,而无需通过 newman 运行?