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

This commit is contained in:
nikhiljindal 2015-01-12 13:48:39 -08:00
parent 6f43074143
commit 6ddfb10728

View File

@ -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/",