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:
@@ -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": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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}))
|
||||||
|
|||||||
Reference in New Issue
Block a user