【文件属性】:
文件名称:universal-converter
文件大小:737KB
文件格式:ZIP
更新时间:2021-04-04 01:22:09
JavaScript
通用API转换器
cd进入universal_converter目录。
使用npm start运行服务器。
将路径替换为要转换的本地OpenAPI3 / Swagger2文档的路径后,使用以下curl。 此外,改变format和convertTo相应。
curl --location --request POST 'localhost:3001/converter?type=string&format=openapi3&convertTo=postman2' \
--form 'file=@"/home/sarthak/code/openapi-to-postman/example-spec.yaml"'