Hello,
I'm trying to set tags on my Swagger endpoints.
swaggerDoc :: S.Swagger
swaggerDoc = toSwagger (Proxy :: Proxy AppAPI)
& S.info . S.title .~ "App API"
& S.info . S.version .~ "v2.0.0"
& S.info . S.description ?~ "This is the API"
I would like to apply a tag on all the endpoints, based on the URL.
For example, all endpoints starting with "/api/v1/foo" should be tagged "Foo".
How to achieve that?
Thanks a lot
Corentin