Type |聽Version
---|---
Question | 4.12.4
Is there a way to have different swagger API docs for different controllers?
I am building a server which actually holds multiple modules with different responsibilities, and I would like the modules to be documented separately (it is later published to a WSO2 API gateway, so it's important that each API doc will hold only the endpoints related to the specific use they serve).
Thanks!
@TomerAmirV Actually not. You can hide some controllers from documentation with @Hiddendecorators. But create two or more docs is not supported.
See you,
Romain
Maybe we can use tags field to create documentation per tag in a future version of @tsed/swagger.
Thanks for the quick answer!
could this be added?
It's not that uncommon. here is a Java Spring implementation to what I mean:
https://github.com/springfox/springfox-demos/tree/master/boot-swagger
No problem. Just, I need a time to dev that :).
Released with v4.14.0
Thanks a lot! 馃帀 馃槂