File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1
1
# README
2
2
3
3
> 很无奈,应为年纪,只有持续写代码才能缓解一些焦虑,所以写代码,写文档......
4
+ > 这些可能也没有什么用,不过我一直在练手;
5
+ > 工作量=人数* 时间,工作量基本一致的情况下,要么就是人数少,时间长,
6
+ > 要么就是人数多,时间短,没有资源就只能自己尝试了,所以时间会长些
4
7
5
8
- [ 接口录制后台] ( docs/api-recorder/api-record-server.md ) 接口录制后台简单说明
6
9
Original file line number Diff line number Diff line change
1
+ ## Postman 解析
2
+
3
+ 一下代码可以进行postman解析:
4
+
5
+ ``` java
6
+ public class PostmanParserTest {
7
+ PostmanParser parser = new PostmanParser ();
8
+
9
+ @Test
10
+ void toPostmanCollectionFromFile () {
11
+ String jsonString = FileUtil . readString(" openproject-postman.json" , Charset . defaultCharset());
12
+ PostmanCollection pc = parser. toPostmanCollection(jsonString);
13
+ Assertions . assertThat(pc. getItem()). isNotNull();
14
+ }
15
+ }
16
+ ```
17
+
18
+ 文件读取后,会转化为PostmanCollection类.后续需要如何处理直接通过Postman转换进行.
You can’t perform that action at this time.
0 commit comments