From f116b7740436831077f503a7e03b3c2e9cfc693b Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Tue, 24 Oct 2023 16:55:29 +0530 Subject: [PATCH] Upd: add list api keys endpoints Signed-off-by: George J Padayatti --- openapi/v2023.8.2/bundled.yaml | 30 +++++++++++++++++++ openapi/v2023.8.2/index.yaml | 3 ++ openapi/v2023.8.2/paths/configListApiKey.yaml | 28 +++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 openapi/v2023.8.2/paths/configListApiKey.yaml diff --git a/openapi/v2023.8.2/bundled.yaml b/openapi/v2023.8.2/bundled.yaml index d153401..561bda2 100644 --- a/openapi/v2023.8.2/bundled.yaml +++ b/openapi/v2023.8.2/bundled.yaml @@ -2363,6 +2363,36 @@ paths: description: bad input parameter security: - BearerAuth: [] + /config/admin/apikeys: + get: + description: LIST - List all api keys + operationId: configListApiKey + parameters: + - $ref: '#/paths/~1config~1policies/get/parameters/1' + - $ref: '#/paths/~1config~1policies/get/parameters/2' + responses: + '200': + content: + application/json: + schema: + type: object + properties: + apiKeys: + $ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema' + pagination: + $ref: '#/components/schemas/Pagination' + description: '' + '400': + description: bad input parameter + security: + - BearerAuth: [] + summary: LIST - List all api keys + tags: + - config + x-specification-crudl-model: ApiKey + x-specification-pii-or-sensitive: 'False' + x-specification-scenario: '' + x-specification-usecase: UC-C-PIC-A-003 /config/admin/apikey: post: description: CREATE - Create an API key diff --git a/openapi/v2023.8.2/index.yaml b/openapi/v2023.8.2/index.yaml index 5d68329..fcb5d25 100644 --- a/openapi/v2023.8.2/index.yaml +++ b/openapi/v2023.8.2/index.yaml @@ -175,6 +175,9 @@ paths: /config/idp/open-ids: post: $ref: "./paths/configListIdp.yaml" + /config/admin/apikeys: + get: + $ref: "./paths/configListApiKey.yaml" /config/admin/apikey: post: $ref: "./paths/configCreateApikey.yaml" diff --git a/openapi/v2023.8.2/paths/configListApiKey.yaml b/openapi/v2023.8.2/paths/configListApiKey.yaml new file mode 100644 index 0000000..f8524bc --- /dev/null +++ b/openapi/v2023.8.2/paths/configListApiKey.yaml @@ -0,0 +1,28 @@ +description: LIST - List all api keys +operationId: configListApiKey +parameters: + - $ref: "../parameters/offset.yaml" + - $ref: "../parameters/limit.yaml" +responses: + "200": + content: + application/json: + schema: + type: object + properties: + apiKeys: + $ref: ../definitions/ApiKey.yaml + pagination: + $ref: "../definitions/Pagination.yaml" + description: "" + "400": + description: bad input parameter +security: + - BearerAuth: [] +summary: LIST - List all api keys +tags: + - config +x-specification-crudl-model: ApiKey +x-specification-pii-or-sensitive: "False" +x-specification-scenario: "" +x-specification-usecase: UC-C-PIC-A-003