nei
nei copied to clipboard
导入Postman失败
Bug 描述 解析Postman接口文件错误 接口为空!
导入文件
{
"info":{
"_postman_id":"b29b6952-3371-4276-a1ce-6111cafec135",
"name":"lz2392504 的项目",
"schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item":[
{
"name":"测试接口-获取用户信息接口",
"request":{
"auth":{
"type":"noauth"
},
"method":"GET",
"header":[
],
"url":{
"raw":"{{baseUrl}}/getUserInfo?userId=<string>",
"host":[
"{{baseUrl}}"
],
"path":[
"getUserInfo"
],
"query":[
{
"key":"userId",
"value":"<string>",
"description":"(Required) 用户编号"
}
]
}
},
"response":[
{
"name":"成功",
"originalRequest":{
"method":"GET",
"header":[
],
"url":{
"raw":"{{baseUrl}}/getUserInfo?userId=<string>",
"host":[
"{{baseUrl}}"
],
"path":[
"getUserInfo"
],
"query":[
{
"key":"userId",
"value":"<string>"
}
]
}
},
"status":"OK",
"code":200,
"_postman_previewlanguage":"text",
"header":[
{
"key":"Content-Type",
"value":"*/*"
}
],
"cookie":[
],
"body":""
}
]
},
{
"name":"测试mock接口",
"request":{
"auth":{
"type":"noauth"
},
"method":"GET",
"header":[
],
"url":{
"raw":"{{baseUrl}}/testMock?name=<string>",
"host":[
"{{baseUrl}}"
],
"path":[
"testMock"
],
"query":[
{
"key":"name",
"value":"<string>",
"description":"(Required) 测试使用的传参参数姓名"
}
]
}
},
"response":[
{
"name":"成功",
"originalRequest":{
"method":"GET",
"header":[
],
"url":{
"raw":"{{baseUrl}}/testMock?name=<string>",
"host":[
"{{baseUrl}}"
],
"path":[
"testMock"
],
"query":[
{
"key":"name",
"value":"<string>"
}
]
}
},
"status":"OK",
"code":200,
"_postman_previewlanguage":"text",
"header":[
{
"key":"Content-Type",
"value":"*/*"
}
],
"cookie":[
],
"body":""
}
]
}
],
"variable":[
{
"id":"baseUrl",
"key":"baseUrl",
"value":"/",
"type":"string"
}
],
"protocolProfileBehavior":{
}
}