asp.net - 将 Postman Collection 转换为 PDF

标签 asp.net postman postman-collection

我开发了一个相当广泛的 API,并将其放在 Postman 上,效果非常好。现在我必须生成一个 html 文档,以将其版本与我的源代码一起保存在/docs 中。

有没有工具或方法可以实现这一目标?我真的不想写所有这些文档。我也不想使用 Postman 发布文档。共享 postman 集合不是一个选择 如何将 Postman Collection 转换为 PDF/Word 文档?

最佳答案

您可以通过 postman 发布您的收藏文档:

  1. 点击... -> 发布文档。

enter image description here

这将打开 postman 网站的新页面,您可以在其中预览文档 enter image description here

  • 点击预览文档,它将打开一个新页面作为文档的 html 版本。

  • 右键单击以显示镶边选项“打印” enter image description here

  • 这将为您提供将其另存为 pdf 的选项

    enter image description here

    这个答案的灵感来自here用于从 postman 集合创建 html 文档。

    关于asp.net - 将 Postman Collection 转换为 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46975173/

    相关文章:

    java - 使用 Java 执行 Postman 集合

    c# - 为现有网站创建母版页的指南

    asp.net - Visual Studio 2008 SP1 - 如何停止在 IE 以外的其他浏览器中进行调试?

    javascript - 如何从 aspx 文件中的脚本将值设置为 script(.js) 文件中的变量

    postman :将响应保存在全局变量上

    javascript - 如何在ajax中插入数组?

    wcf - 如何使用 Postman 调用 WCF SOAP Web 服务

    c# - 如何停止 gridview 在 asp.net 中创建一个 div

    postman - 在 Postman 中使用集合变量

    paw-app - 导入Postman集合失败