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

Fah*_*san 3 api api-doc postman

我正在不断地测试apisusng postman,然后使用app生成 api 文档postman

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

在此处输入图片说明

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

Dan*_*ton 5

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

在此处输入图片说明

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

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