From df7cb1ed3f7382eab54f3079b0981a9acb0a138f Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 7 Dec 2022 16:25:26 +0100 Subject: Add project-ssh-key to API docs At the moment API call for fetching SSH public key is not documented anywhere. It's a bit confusing when a user tries to check through available calls. This call documented only in ``job-content.rst``. Change-Id: I69a8d8994b1b4e49ac2c5b07690ebb9ff2a62e38 --- web/public/openapi.yaml | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) (limited to 'web/public') diff --git a/web/public/openapi.yaml b/web/public/openapi.yaml index d69111cf8..cb2e10b37 100644 --- a/web/public/openapi.yaml +++ b/web/public/openapi.yaml @@ -249,7 +249,7 @@ paths: - tenant /api/tenant/{tenant}/key/{project}.pub: get: - operationId: get-project-key + operationId: get-project-secrets-key parameters: - description: The tenant name in: path @@ -275,12 +275,44 @@ paths: ' schema: - description: The project public key + description: The project secrets public key in PKCS8 format type: string - description: Returns the project public key + description: Returns the project public key that is used to encrypt secrets '404': description: Tenant or Project not found - summary: Get a project public key + summary: Get a project public key that is used to encrypt secrets + tags: + - tenant + /api/tenant/{tenant}/project-ssh-key/{project}.pub: + get: + operationId: get-project-ssh-key + parameters: + - description: The tenant name + in: path + name: tenant + required: true + schema: + type: string + - description: The project name + in: path + name: project + required: true + schema: + type: string + responses: + '200': + content: + text/plain: + example: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACA + + ' + schema: + description: The project ssh public key in SSH2 format + type: string + description: Returns the project public key that executor adds to SSH agent + '404': + description: Tenant or Project not found + summary: Get a project public key that is used for SSH in post-merge pipelines tags: - tenant /api/tenant/{tenant}/semaphores: -- cgit v1.2.1