-
Notifications
You must be signed in to change notification settings - Fork 5
Description
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