我正在测试 apis
usng postman
连续然后生成 api 文档 使用 postman
应用程序。
但问题是文档没有显示 api response
我在 postman console
收到的.这是我收到的大部分回复 apis
我怎样才能在我的 api 文档中获得响应正文?
最佳答案
如果请求已保存到集合中,您可以使用 Save as example
功能,位于响应正文的右上角。这将打开 example
builder 并保存后,此响应正文将针对 API 文档中的请求显示。
可以在此处找到有关其工作原理的更多详细信息:
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/