Skip to content

Commit

Permalink
Merge pull request kubernetes#16690 from nikhiljindal/apiDeclNotFound
Browse files Browse the repository at this point in the history
Fixing missing swagger spec for apis/extensions
  • Loading branch information
nikhiljindal committed Nov 3, 2015
2 parents c248737 + 326d333 commit 34cbe48
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2 deletions.
28 changes: 28 additions & 0 deletions api/swagger-spec/apis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"swaggerVersion": "1.2",
"apiVersion": "",
"basePath": "https://10.10.10.10:6443",
"resourcePath": "/apis",
"apis": [
{
"path": "/apis",
"description": "get available API versions",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "get available API versions",
"nickname": "getAPIVersions",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"application/json"
]
}
]
}
],
"models": {}
}
28 changes: 28 additions & 0 deletions api/swagger-spec/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"swaggerVersion": "1.2",
"apiVersion": "",
"basePath": "https://10.10.10.10:6443",
"resourcePath": "/apis/extensions",
"apis": [
{
"path": "/apis/extensions",
"description": "get information of a group",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "get information of a group",
"nickname": "getAPIGroup",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"application/json"
]
}
]
}
],
"models": {}
}
2 changes: 1 addition & 1 deletion api/swagger-spec/resourceListing.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"description": "API at /apis/extensions/v1beta1"
},
{
"path": "/apis/extensions/",
"path": "/apis/extensions",
"description": "get information of a group"
},
{
Expand Down
2 changes: 2 additions & 0 deletions hack/after-build/update-swagger-spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ curl -fs ${SWAGGER_API_PATH} > ${SWAGGER_ROOT_DIR}/resourceListing.json
curl -fs ${SWAGGER_API_PATH}version > ${SWAGGER_ROOT_DIR}/version.json
curl -fs ${SWAGGER_API_PATH}api > ${SWAGGER_ROOT_DIR}/api.json
curl -fs ${SWAGGER_API_PATH}api/v1 > ${SWAGGER_ROOT_DIR}/v1.json
curl -fs ${SWAGGER_API_PATH}apis > ${SWAGGER_ROOT_DIR}/apis.json
curl -fs ${SWAGGER_API_PATH}apis/extensions > ${SWAGGER_ROOT_DIR}/extensions.json
curl -fs ${SWAGGER_API_PATH}apis/extensions/v1beta1 > ${SWAGGER_ROOT_DIR}/v1beta1.json

kube::log::status "SUCCESS"
Expand Down
2 changes: 1 addition & 1 deletion pkg/master/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ func (m *Master) init(c *Config) {
Versions: expAPIVersions,
PreferredVersion: unversioned.GroupVersion{GroupVersion: storageVersion, Version: apiutil.GetVersion(storageVersion)},
}
apiserver.AddGroupWebService(m.handlerContainer, c.APIGroupPrefix+"/"+latest.GroupOrDie("extensions").Group+"/", group)
apiserver.AddGroupWebService(m.handlerContainer, c.APIGroupPrefix+"/"+latest.GroupOrDie("extensions").Group, group)
allGroups = append(allGroups, group)
apiserver.InstallServiceErrorHandler(m.handlerContainer, m.newRequestInfoResolver(), []string{expVersion.Version})
}
Expand Down

0 comments on commit 34cbe48

Please sign in to comment.