Commit f12f5ed3 authored by nikhiljindal's avatar nikhiljindal

1. Adding swagger-ui/dist files.

2. Updating datafile.go to include it. 3. Updating master,go to use it.
parent cfee8f13
...@@ -414,9 +414,8 @@ func (m *Master) InstallSwaggerAPI() { ...@@ -414,9 +414,8 @@ func (m *Master) InstallSwaggerAPI() {
WebServices: m.handlerContainer.RegisteredWebServices(), WebServices: m.handlerContainer.RegisteredWebServices(),
// TODO: Parameterize the path? // TODO: Parameterize the path?
ApiPath: "/swaggerapi/", ApiPath: "/swaggerapi/",
// TODO: Distribute UI javascript and enable the UI SwaggerPath: "/swaggerui/",
//SwaggerPath: "/swaggerui/", SwaggerFilePath: "/static/swagger-ui/",
//SwaggerFilePath: "/srv/apiserver/swagger/dist"
} }
swagger.RegisterSwaggerService(swaggerConfig, m.handlerContainer) swagger.RegisterSwaggerService(swaggerConfig, m.handlerContainer)
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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