Added create namespace API (#808)

This commit is contained in:
Alex
2021-06-14 12:04:57 -05:00
committed by GitHub
parent 4d62fe1638
commit 31d18efa9a
11 changed files with 763 additions and 1 deletions

View File

@@ -2171,6 +2171,26 @@ paths:
$ref: "#/definitions/error"
tags:
- AdminAPI
/namespace:
post:
summary: Creates a new Namespace with given information
operationId: CreateNamespace
parameters:
- name: body
in: body
required: true
schema:
$ref: "#/definitions/namespace"
responses:
201:
description: A successful response.
default:
description: Generic error response.
schema:
$ref: "#/definitions/error"
tags:
- AdminAPI
/namespaces/{namespace}/tenants:
get:
@@ -5218,5 +5238,12 @@ definitions:
type: array
items:
type: string
namespace:
type: object
required:
- name
properties:
name:
type: string