Commit b3d827e3 authored by bgrant0607's avatar bgrant0607

Merge pull request #3416 from nikhiljindal/basePath

Setting WebServicesUrl in swagger config
parents 0f70aee6 6ddfb107
...@@ -429,7 +429,8 @@ func (m *Master) init(c *Config) { ...@@ -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/",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment