Merge pull request #3416 from nikhiljindal/basePath

Setting WebServicesUrl in swagger config
This commit is contained in:
bgrant0607 2015-01-12 13:59:21 -08:00
commit b3d827e333

View File

@ -429,7 +429,8 @@ func (m *Master) init(c *Config) {
func (m *Master) InstallSwaggerAPI() { func (m *Master) InstallSwaggerAPI() {
// Enable swagger UI and discovery API // Enable swagger UI and discovery API
swaggerConfig := swagger.Config{ swaggerConfig := swagger.Config{
WebServices: m.handlerContainer.RegisteredWebServices(), WebServicesUrl: m.readWriteServer,
WebServices: m.handlerContainer.RegisteredWebServices(),
// TODO: Parameterize the path? // TODO: Parameterize the path?
ApiPath: "/swaggerapi/", ApiPath: "/swaggerapi/",
SwaggerPath: "/swaggerui/", SwaggerPath: "/swaggerui/",