From c0d710c97ff766f89a509ed1d70b93155a2ac057 Mon Sep 17 00:00:00 2001 From: Lucas Roesler Date: Sun, 4 Jun 2023 19:32:50 +0200 Subject: [PATCH] chore: add missing List Namespaces endpoint Signed-off-by: Lucas Roesler --- api-docs/spec.openapi.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/api-docs/spec.openapi.yml b/api-docs/spec.openapi.yml index 1e251e4a..0454c5bf 100644 --- a/api-docs/spec.openapi.yml +++ b/api-docs/spec.openapi.yml @@ -351,6 +351,22 @@ paths: '500': description: Internal Server Error + "/system/namespaces": + get: + operationId: ListNamespaces + description: Get a list of namespaces + tags: + - system + responses: + '200': + description: List of namespaces + content: + application/json: + schema: + $ref: '#/components/schemas/ListNamespaceResponse' + '500': + description: Internal Server Error + "/async-function/{functionName}": post: operationId: InvokeAsync @@ -966,3 +982,10 @@ components: text: type: string description: raw log message content + + ListNamespaceResponse: + type: array + items: + type: string + description: Namespace name + example: openfaas-fn