mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Merge pull request #3070 from nikhiljindal/setApiVersion
Adding skeleton swagger UI
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user