kataras / iris

The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:
https://www.iris-go.com
BSD 3-Clause "New" or "Revised" License
25.24k stars 2.47k forks source link

[FEATURE REQUEST] Swagger generator and renderer #2415

Closed PanGan21 closed 6 months ago

PanGan21 commented 6 months ago

Is your feature request related to a problem? Please describe. I would like to generate a swagger without having to import another library using iris sdk.

Describe the solution you'd like The ideal solution would be a sub package that reads comments written over the routes definition and generates the json file to be rendered. Then use this file to render it in a configurable path.

Describe alternatives you've considered If no comments, some custom definition for example yaml files is also welcome. The point is to not have to use another library for this job.

PanGan21 commented 6 months ago

I just saw this one: https://github.com/iris-contrib/swagger so I am closing the issue. I believe it does what I want