新增Postman导出

This commit is contained in:
2024-03-01 21:53:37 +08:00
parent 5cc1c349cd
commit 2aca2c3dbe
6 changed files with 354 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
function exportData(exportDataModule, pid) {
console.log("inject ")
exportDataModule.postman = {
name: 'postman collection',
route: `/api/plugin/exportPostman?pid=${pid}`,
desc: '导出项目接口文档为Postman Json文件'
};
}
module.exports = function() {
this.bindHook('export_data', exportData);
};