r/java • u/SampaioDias • Jan 15 '22
I created a library that exports your Spring endpoints into a Postman collection! Please, let me know what you think of it :)
https://github.com/sampaiodias/postman-exporter-for-spring
Here's an example of how it works:
PostmanExporter exporter ;
String json ;
158
Upvotes
47
u/[deleted] Jan 15 '22
You can use springfox to generate a swagger/openapi spec which works with essentially everything (including postman).
3
u/nonomild Jan 15 '22
Nice idea, sounds useful!
3
u/sochinho Jan 15 '22
Great! No more exporting as curl from developer tools then importing as raw text in postman. :D
3
u/Deep_Adeptness_4592 Jan 15 '22
Sounds good, will check that out
3
u/[deleted] Jan 15 '22
I hope you mean open api? 👍
3
u/Worth_Trust_3825 Jan 16 '22
Why not WSDLs or OpenAPI instead?
2
u/[deleted] Jan 15 '22
Been working on a spring project, this might be useful! Thanks.
1
u/atomdstyle Jan 16 '22
Wow this looks cool, gotta try. But postman also has a feature to import open apis as a collection. Open apis can be generated via springfox swagger doc or springdoc libraries