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

pull/6/head
nikhiljindal 2015-01-12 13:48:39 -08:00
parent 6f43074143
commit 6ddfb10728
1 changed files with 2 additions and 1 deletions

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