将邮递员收集报告转换为膨胀文件。

swagman的Python项目详细描述


将邮递员收集报告转换为膨胀文件。

见:https://github.com/postmanlabs/newman#json-reporter-options

安装

只需像往常一样pip安装:

~$ pip install swagman

或者pip在开发中安装:

~/swagman$ pip install -e .

用法

请按照帮助进行操作:

~$ swagman -h
usage: swagman [-h][-b BASEPATH][-e ENVIRONMENT][-f OUTPUT_FORMAT][-g _GLOBALS][-H HOST][-o OUTPUT][-s SCHEMES][-t EXTRA_TAGS][--template TEMPLATE_PATH]
              input

Convert PostMan Collections to Swagger file.

positional arguments:
  input                 Path to the collection to convert

optional arguments:
  -h, --help            show this help message and exit
  -b BASEPATH, --base-path BASEPATH
                        Base path to a collection, ex: /api, default: /
  -e ENVIRONMENT, --environment ENVIRONMENT
                        Path to a collection environment file, default: None
  -f OUTPUT_FORMAT, --output-format OUTPUT_FORMAT
                        Output format between json or yaml, default: yaml
  -g _GLOBALS, --globals _GLOBALS
                        Path to a collection globals file, default: None
  -H HOST, --host HOST  Host of the collection file, ex.: 127.0.0.1, default:
                        None
  -o OUTPUT, --output OUTPUT
                        Path to the swagger file to generate, default:
                        swagger.yml
  -s SCHEMES, --schemes SCHEMES
                        Supported schemes of the collection file, ex.:
                        "http,https", default: https
  -t EXTRA_TAGS, --extra-tags EXTRA_TAGS
                        Additional tags to be included, ex: "sso,oauth",
                        default: ""
  --template TEMPLATE_PATH
                        Path to a template to use for swagger result rendering
                        (required for html ouput).

许可证

麻省理工学院许可证

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在另一个承诺中解决一个承诺?   java验证字符串输入   如何在Java中将数组转换为链表   配置Logstash以从socket接收数据,并将其插入java中的Elasticsearch   swing构建在Java中以相同顺序运行的JFrame   java什么是工具箱的正确路径。getImage()?   java springbootgradleplugin是否随springboot版本一起移动?   升级gradle插件后,java gradle项目同步仍失败   java CXF服务调用失败,出现意外命名空间上的解组错误   Javaservlet。servlet ctakesrestservice的init()引发异常   java我需要什么正则表达式来读取这个值'12,'   java如何使用Xstream在现有xml文件中导入带有节点的字符串?   基于特殊字符的java子串   java hibernate从查询创建通用对象