❔ Import Swagger APIs into Postman

Hello,

I need help generating a valid JSON OpenAI Swagger with .NET (Microsofts Minimal API with Dapper and EF Core as ORM Mapper) that works on Postman. I'm currently having trouble importing Swagger APIs through a json into Postman. Could you please a guide on how to do this? Thank you. What I am struggling with is actually is having postman accept my json, maybe I need to configure it first?

The error I am getting on postman is this:
Error while importing: format not recognized

I am using openapi: "3.0.1"

I have found this but this is for Java
https://www.baeldung.com/swagger-apis-in-postman

From this stackoverflow post:
https://stackoverflow.com/questions/39072216/how-to-import-swagger-apis-into-postman

With .Net Core it is now very easy:

You go and find JSON URL on your swagger page:
enter image description here

Click that link and copy the URL
Now go to Postman and click Import:
enter image description here

Something that I have also noticed is I must select a definition, and I have a json for each definition rather than a generic one

Yeah, but using it I get issues, why might be that?

Stack: .NET + Microsofts Minimal API with Dapper and EF Core as ORM Mapper
Baeldung
A quick and practical guide how to import Swagger APIs to Postman.
Stack Overflow
Recently I wrote restful APIs with SpringMvc and swagger-ui(v2). I noticed the Import function in Postman:
So my question is how to create the file which Postman needed?

I am not familiar with Sw...
Was this page helpful?