Fix the tiny typo in ks-openapi-spec (#5114)

There is tiny typo in Create Namespace API.
So fix it quickly.
This commit is contained in:
Hao Wang
2022-08-10 17:58:32 +08:00
committed by GitHub
parent 74e127e1a6
commit 587dbe723b
2 changed files with 2 additions and 2 deletions

View File

@@ -12711,7 +12711,7 @@
"tags": [ "tags": [
"Namespace" "Namespace"
], ],
"summary": "List the namespaces of the specified workspace for the current user", "summary": "Create the namespaces of the specified workspace for the current user",
"operationId": "CreateNamespace", "operationId": "CreateNamespace",
"parameters": [ "parameters": [
{ {

View File

@@ -190,7 +190,7 @@ func AddToContainer(c *restful.Container, factory informers.InformerFactory, k8s
ws.Route(ws.POST("/workspaces/{workspace}/namespaces"). ws.Route(ws.POST("/workspaces/{workspace}/namespaces").
To(handler.CreateNamespace). To(handler.CreateNamespace).
Param(ws.PathParameter("workspace", "workspace name")). Param(ws.PathParameter("workspace", "workspace name")).
Doc("List the namespaces of the specified workspace for the current user"). Doc("Create the namespaces of the specified workspace for the current user").
Reads(corev1.Namespace{}). Reads(corev1.Namespace{}).
Returns(http.StatusOK, api.StatusOK, corev1.Namespace{}). Returns(http.StatusOK, api.StatusOK, corev1.Namespace{}).
Metadata(restfulspec.KeyOpenAPITags, []string{constants.NamespaceTag})) Metadata(restfulspec.KeyOpenAPITags, []string{constants.NamespaceTag}))