Hi, I feel that this question has already been addressed somewhat in other posts, but I wanted to clarify something that I'm not sure is completely supported in Swagger 2.0, but had some form of support in Swagger 1.2.
To my understanding, in Swagger 1.2, you were able to aggregate multiple Swagger definitions to be displayed in a single swagger UI definition by specifying multiple paths in the "apis" field:
"apis": [
{
"description": "this is a valid swagger definition",
"path": "/swaggerDef1"
},
{
"description": "this is also a valid swagger definition"
"path": "/swaggerDef2"
}
]
In this case, each path would lead to a valid swagger JSON object, and each of these swagger objects would be aggregated and displayed in the same UI.
From what I've read about Swagger 2.0, it seems that this functionality is no longer supported, and that the swagger.json file must be all contained in one JSON object. I understand that certain fields, such as definitions and operations, can be referenced externally using the "$ref" field, but I haven't yet seen a way that multiple swagger objects can be aggregated together into one UI the way they could be in Swagger 1.2
For our API, I currently have an endpoint that returns a valid swagger JSON object for a given plugin. The problem is that we want to provide swagger support in a single UI for any number of plugins, each of which have their own independent path corresponding to their swagger JSON object. I'm not sure there is a supported way to aggregate these swagger definitions to be displayed together.
Is there any way that this sort of functionality is supported in Swagger 2.0? And if not, would anyone have any advice on what the best approach would be to achieve something like this?
Thanks!