Merge pull request #3070 from nikhiljindal/setApiVersion

Adding skeleton swagger UI
This commit is contained in:
Brendan Burns
2014-12-19 17:16:04 -08:00
26 changed files with 26540 additions and 24 deletions

View File

@@ -421,10 +421,9 @@ func (m *Master) InstallSwaggerAPI() {
swaggerConfig := swagger.Config{
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"
ApiPath: "/swaggerapi/",
SwaggerPath: "/swaggerui/",
SwaggerFilePath: "/static/swagger-ui/",
}
swagger.RegisterSwaggerService(swaggerConfig, m.handlerContainer)
}