iris-contrib / swagger

Iris middleware to automatically generate RESTful API documentation with Swagger 2.0
MIT License
115 stars 32 forks source link

swagger doesn't work when I use app.Party #4

Open livbarn opened 5 years ago

livbarn commented 5 years ago

v1 := app.Party("/api/v1") v1.Post("/user/login", ...

swagger path is /user/login

kataras commented 4 years ago

Hello @CastleSky, can you please provide the exact steps to reproduce?

dani-fmena commented 3 years ago

I have the same problem, ... @livbarn @kataras Is there an example with app. Party ?

dani-fmena commented 3 years ago

I'm new to this and turns out I'm doing it wrong. The swagger declarative comments for the endpoint doesn't go inside the Party closure, but in each functions party members calls. Check this Link