Commit 6ddfb107 authored by nikhiljindal's avatar nikhiljindal

Setting WebServicesUrl in swagger config, so that the api docs contain correct basepath

parent 6f430741
......@@ -429,7 +429,8 @@ func (m *Master) init(c *Config) {
func (m *Master) InstallSwaggerAPI() {
// Enable swagger UI and discovery API
swaggerConfig := swagger.Config{
WebServices: m.handlerContainer.RegisteredWebServices(),
WebServicesUrl: m.readWriteServer,
WebServices: m.handlerContainer.RegisteredWebServices(),
// TODO: Parameterize the path?
ApiPath: "/swaggerapi/",
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