1. Adding swagger-ui/dist files.

2. Updating datafile.go to include it.
3. Updating master,go to use it.
This commit is contained in:
nikhiljindal 2014-12-19 14:56:20 -08:00
parent cfee8f1355
commit f12f5ed34b
2 changed files with 13603 additions and 23 deletions

View File

@ -414,9 +414,8 @@ func (m *Master) InstallSwaggerAPI() {
WebServices: m.handlerContainer.RegisteredWebServices(),
// TODO: Parameterize the path?
ApiPath: "/swaggerapi/",
// TODO: Distribute UI javascript and enable the UI
//SwaggerPath: "/swaggerui/",
//SwaggerFilePath: "/srv/apiserver/swagger/dist"
SwaggerPath: "/swaggerui/",
SwaggerFilePath: "/static/swagger-ui/",
}
swagger.RegisterSwaggerService(swaggerConfig, m.handlerContainer)
}

File diff suppressed because one or more lines are too long