Hi, I created a web api using .net and swagger. I can’t import it into postman, but I can access its endpoints manually. When I try to import https://localhost:5001/swagger/v1/swagger.json postman said Error while fetching data from link.
I’m using https self signed certificated create by VS. Postman has the SSL certificate verification off in configuration.
Any idea where is the problem?
Best regards
Hi Yorlen, welcome to the Postman Community! 
Thanks for sharing your question. While I don’t have a solution for you just yet, I wanted to acknowledge your issue and let you know that someone from our awesome community will likely have insights to help.
Appreciate you being here, and looking forward to seeing what others suggest!
1 Like
Hi @supply-astronaut-175
. Welcome to the Postman Community! 
The collection import only allows you to import a valid Postman Collection JSON. A swagger file on the other hand is an OpenAPI 2.xxs specification file and cannot be imported into a Postman collection directly.
To get this to work, you will need to first import the Swagger file into the API Builder, and generate a Collection from the spec in the API Builder.
Using the above image as a reference, click on 1, then select 2 to import your swagger file. Pasting the URL here directly should work.
Once you are done importing..
Using the above image as a reference, select the name of the API you just imported (1), click on the + icon (2), and select generate from collection(3), then follow the instructions.
You should see a generated collection that you can begin to play around with.
Please let me know if you have any questions!
Hi, thank you very much. I don’t know why but I were unable to import it, when I pasted the swa I continue receiving the “Error while fetching data from link.” message, but I open manually the link a copy and paste the content and thats all. I have my collection working. Best regards