Tsed: [Question] Multiple Swagger API Docs in a single server

Created on 9 Apr 2018  路  7Comments  路  Source: tsedio/tsed

Informations

Type |聽Version
---|---
Question | 4.12.4


Description

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!

enhancement

All 7 comments

@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! 馃帀 馃槂

Was this page helpful?
0 / 5 - 0 ratings

Related issues

royibernthal picture royibernthal  路  4Comments

royibernthal picture royibernthal  路  3Comments

revich2 picture revich2  路  4Comments

yangukmo picture yangukmo  路  6Comments

Ionaru picture Ionaru  路  5Comments