# postman.parser **Repository Path**: rslai/postman.parser ## Basic Information - **Project Name**: postman.parser - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-12 - **Last Updated**: 2023-11-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # postman.parser #### 介绍 1. 本项目是一个 postman 文件的解析器,可以将 postman 文件解析为 java 对象,方便后续的处理; 2. 项目中只是按照规范定义了一个实体 bean,然后通过 fastjson 将 postman 的导出文件转换为 java 对象; 3. 项目中并未按规范中的 oneOf 实现,遇到 oneOf 只实现了其中一种类型。 #### fork 项目 https://github.com/khayashi4337/postmanCollectionParser/tree/main #### 参考规范 https://github.com/postmanlabs/schemas #### 使用说明 1. pom.xml 中引入依赖库 ``` com.gitee.rslai.base.postman postman-parser 0.14 ``` 2. 添加如下代码 ``` // 从 File 中读取 Postman Collection 数据 PosCollectionParser fromFile = new PosCollectionParser(); PosCollection posCollection = fromFile.parser(new File("postman_collection.json")); System.out.println(posCollection); // 从 String 中读取 Postman Collection 数据 PosCollectionParser fromString = new PosCollectionParser(); PosCollection posCollection = fromString.parser(new File("postman_collection.json")); System.out.println(posCollection); ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)