新增Postman导出
This commit is contained in:
12
exts/yapi-plugin-export-postman/client.js
Normal file
12
exts/yapi-plugin-export-postman/client.js
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user