swagger-express-ts icon indicating copy to clipboard operation
swagger-express-ts copied to clipboard

Multiple swagger.json

Open MatthieuFereyre opened this issue 6 years ago • 2 comments

Hello,

Is it possible to generate multiple swagger.json and serve them. Exemple : module1.swagger.json module2.swagger.json

For a big api it would be handy to filter it by modules or something else.

Thanks, Matthieu

MatthieuFereyre avatar Aug 31 '18 08:08 MatthieuFereyre

Hello @MatthieuFereyre,

Today it's not possible to generate multiple swagger.json. What do you propose ? Can you give us an example ?

olivierlsc avatar Oct 15 '18 14:10 olivierlsc

Hi @olivierlsc , same need here. We have a service with multiple modules where each module has its own purpose. One module is for internal administration, another one is specialized for our partners. We would like to have swagger documentation for the internal endpoints but don't want to expose them to our partners. Also, every partner has its own set of endpoints, so every partner needs to have different documentation.

VaclavObornik avatar Sep 21 '21 09:09 VaclavObornik