C
C#15mo ago
バリウム

❔ 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
Import Swagger APIs into Postman | Baeldung
A quick and practical guide how to import Swagger APIs to Postman.
Stack Overflow
How to import Swagger APIs into Postman?
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...
2 Replies
バリウム
バリウム15mo ago
I pasted the json in https://editor.swagger.io/, converted to yaml and then there was an error saying that I needed to add the version. I did that and then pasted the yaml in postman and it worked
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.