wujunzhong/rap-to-postman

Convert the json exported by RAP into the json format imported by Postman

1.0.1 2018-06-05 11:51 UTC

This package is not auto-updated.

Last update: 2024-09-15 05:39:21 UTC


README

一个简单的工具类,用于将 RAP 接口管理工具的备份文件,下载成 Postman 的 Json 导入文件。

使用

Composer 包下载

composer require wujunzhong/rap-to-postman

代码编写

$tool = new \RapToPostman\RapToPostman();
$rapBackupSrc = "xxx"; // Rap 导出备份地址
$savePath = "./public"; // 要保存的文件夹路径

return $tool->run($rapBackupSrc, $savePath); // return ./public/postman.json

下载好的 postman.json 文件使用 Postman 导入即可生成相应的接口。

License

The MIT License (MIT)

Copyright (c) 2018 吴俊钟1250044515@qq.com