microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

Cannot add an API link to API Management through the API Management extension #204

Open gbelenky opened 3 years ago

gbelenky commented 3 years ago

Does this occur consistently? Repro steps:

  1. Context Menu "Import from Open API Link" - https://petstore.swagger.io/v2/swagger.json
  2. The next question - "API Name" is not appearing

I tried it with both Consumption and Developer Tier APIM

Action: azureApiManagement.addApiToProduct Error type: Error Error Message: Missing one or more userOptions when creating new Api

Version: 1.0.2 OS: win32 OS Release: 10.0.19042 Product: Visual Studio Code Product Version: 1.55.2 Language: en

Call Stack ``` ApisTreeItem. extension.bundle.js:479:76525 extension.bundle.js:479:74921extension.bundle.js:479:74921 o extension.bundle.js:479:74607 ApisTreeItem.createChildImpl extension.bundle.js:479:76279 ApisTreeItem. extension.bundle.js:16:308254 extension.bundle.js:16:307309extension.bundle.js:16:307309 o extension.bundle.js:16:306995 ApisTreeItem.createChild extension.bundle.js:16:308040 ApisTreeItem. extension.bundle.js:16:312898 extension.bundle.js:16:307309extension.bundle.js:16:307309 o extension.bundle.js:16:306995 data extension.bundle.js:16:312846 ApisTreeItem. extension.bundle.js:16:309528 fulfilled extension.bundle.js:16:307063 processTicksAndRejections task_queues.js:97:5 ```
kendallroden commented 3 years ago

I also can't get it to work- I get no output. It just doesn't import or do anything after you click "enter"

  1. Right click APIs in the extension
  2. Right click "Import from OpenAPI Link"
  3. Input https://petstore.swagger.io/v2/swagger.json and press "Enter"

Nothing happens - I am using a Mac

kendallroden commented 3 years ago

Found the 3.0 OpenAPI version https://petstore3.swagger.io/api/v3/openapi.json

It also didn't work to import it from the link, but when I put the content in a local folder and imported, it did work

quanterion commented 1 year ago

Thanks for reporting. Fixed in 1.06