wujunzhong/rap-to-postman

将 RAP 导出的 JSON 转换为 Postman 导入的 JSON 格式

1.0.1 2018-06-05 11:51 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:55:17 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 导入即可生成相应的接口。

许可证

MIT 许可证 (MIT)

版权所有 (c) 2018 吴俊钟 1250044515@qq.com