Skip to content

Postman Collection - Server URL/Host not importing into Spaces #49

Description

@mconneely-sb

I've noticed issues when importing Postman Collections into API hub that the server url is not fully imported. The "host" part doesn't seem to be handled by the CLI.

As an example, a url section might look something like below - Once imported into Explore, the Server URls section is not populated, nor is the Host section for the API requests

"url": { "raw": "https://virtserver.swaggerhub.com/MConneely/retailer-api/1.0.0/products/:productId", "protocol": "https", "host": [ "virtserver", "swaggerhub", "com" ], "path": [ "MConneely", "retailer-api", "1.0.0", "products", ":productId" ], "variable": [ { "key": "productId", "value": "<integer>", "description": "(Required) " } ] }

Im not sure if this is different or related, but if the url has references to a variable its also not getting imported

"url": { "raw": "{{baseUrl}}/products/:productId", "host": [ "{{baseUrl}}" ], "path": [ "products", ":productId" ], "variable": [ { "key": "productId", "value": "<integer>", "description": "(Required) " } ] }

Retailer API.postman_collection.json
Retailer API-noBaseUrl.postman_collection.json

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions