Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入Postman失败 #14

Open
cnHuaShao opened this issue Jun 3, 2020 · 0 comments
Open

导入Postman失败 #14

cnHuaShao opened this issue Jun 3, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@cnHuaShao
Copy link
Contributor

cnHuaShao commented Jun 3, 2020

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":{
    
  }
}
@cnHuaShao cnHuaShao added the bug Something isn't working label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant