From 4717162f02bfe313f78b959cd6b7d9b7b49943b8 Mon Sep 17 00:00:00 2001 From: pomidorry Date: Wed, 3 Jun 2026 23:37:56 +0300 Subject: [PATCH] re-order managed-ssh-key path entries --- templates/swagger/v1_json.tmpl | 166 +++++++++++----------- templates/swagger/v1_openapi3_json.tmpl | 178 ++++++++++++------------ 2 files changed, 172 insertions(+), 172 deletions(-) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 7372390197..506faa2fc1 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -3267,6 +3267,89 @@ } } }, + "/orgs/{org}/managed-ssh-key": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "organization" + ], + "summary": "Get SSH public key for organization mirroring", + "operationId": "orgGetManagedSSHKey", + "parameters": [ + { + "type": "string", + "description": "name of the organization", + "name": "org", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "SSH public key", + "schema": { + "type": "object", + "properties": { + "fingerprint": { + "type": "string" + }, + "public_key": { + "type": "string" + } + } + } + }, + "403": { + "$ref": "#/responses/forbidden" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, + "/orgs/{org}/managed-ssh-key/regenerate": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "organization" + ], + "summary": "Regenerate SSH keypair for organization mirroring", + "operationId": "orgRegenerateManagedSSHKey", + "parameters": [ + { + "type": "string", + "description": "name of the organization", + "name": "org", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "New SSH public key", + "schema": { + "type": "object", + "properties": { + "fingerprint": { + "type": "string" + }, + "public_key": { + "type": "string" + } + } + } + }, + "403": { + "$ref": "#/responses/forbidden" + } + } + } + }, "/orgs/{org}/members": { "get": { "produces": [ @@ -3378,89 +3461,6 @@ } } }, - "/orgs/{org}/managed-ssh-key": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], - "summary": "Get SSH public key for organization mirroring", - "operationId": "orgGetManagedSSHKey", - "parameters": [ - { - "type": "string", - "description": "name of the organization", - "name": "org", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "SSH public key", - "schema": { - "type": "object", - "properties": { - "fingerprint": { - "type": "string" - }, - "public_key": { - "type": "string" - } - } - } - }, - "403": { - "$ref": "#/responses/forbidden" - }, - "404": { - "$ref": "#/responses/notFound" - } - } - } - }, - "/orgs/{org}/managed-ssh-key/regenerate": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "organization" - ], - "summary": "Regenerate SSH keypair for organization mirroring", - "operationId": "orgRegenerateManagedSSHKey", - "parameters": [ - { - "type": "string", - "description": "name of the organization", - "name": "org", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "New SSH public key", - "schema": { - "type": "object", - "properties": { - "fingerprint": { - "type": "string" - }, - "public_key": { - "type": "string" - } - } - } - }, - "403": { - "$ref": "#/responses/forbidden" - } - } - } - }, "/orgs/{org}/public_members": { "get": { "produces": [ diff --git a/templates/swagger/v1_openapi3_json.tmpl b/templates/swagger/v1_openapi3_json.tmpl index 13a05d80c4..e4dc33c7f7 100644 --- a/templates/swagger/v1_openapi3_json.tmpl +++ b/templates/swagger/v1_openapi3_json.tmpl @@ -13987,6 +13987,95 @@ ] } }, + "/orgs/{org}/managed-ssh-key": { + "get": { + "operationId": "orgGetManagedSSHKey", + "parameters": [ + { + "description": "name of the organization", + "in": "path", + "name": "org", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "properties": { + "fingerprint": { + "type": "string" + }, + "public_key": { + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "SSH public key" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/notFound" + } + }, + "summary": "Get SSH public key for organization mirroring", + "tags": [ + "organization" + ] + } + }, + "/orgs/{org}/managed-ssh-key/regenerate": { + "post": { + "operationId": "orgRegenerateManagedSSHKey", + "parameters": [ + { + "description": "name of the organization", + "in": "path", + "name": "org", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "properties": { + "fingerprint": { + "type": "string" + }, + "public_key": { + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "New SSH public key" + }, + "403": { + "$ref": "#/components/responses/forbidden" + } + }, + "summary": "Regenerate SSH keypair for organization mirroring", + "tags": [ + "organization" + ] + } + }, "/orgs/{org}/members": { "get": { "operationId": "orgListMembers", @@ -14106,95 +14195,6 @@ ] } }, - "/orgs/{org}/managed-ssh-key": { - "get": { - "operationId": "orgGetManagedSSHKey", - "parameters": [ - { - "description": "name of the organization", - "in": "path", - "name": "org", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "fingerprint": { - "type": "string" - }, - "public_key": { - "type": "string" - } - }, - "type": "object" - } - } - }, - "description": "SSH public key" - }, - "403": { - "$ref": "#/components/responses/forbidden" - }, - "404": { - "$ref": "#/components/responses/notFound" - } - }, - "summary": "Get SSH public key for organization mirroring", - "tags": [ - "organization" - ] - } - }, - "/orgs/{org}/managed-ssh-key/regenerate": { - "post": { - "operationId": "orgRegenerateManagedSSHKey", - "parameters": [ - { - "description": "name of the organization", - "in": "path", - "name": "org", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "fingerprint": { - "type": "string" - }, - "public_key": { - "type": "string" - } - }, - "type": "object" - } - } - }, - "description": "New SSH public key" - }, - "403": { - "$ref": "#/components/responses/forbidden" - } - }, - "summary": "Regenerate SSH keypair for organization mirroring", - "tags": [ - "organization" - ] - } - }, "/orgs/{org}/public_members": { "get": { "operationId": "orgListPublicMembers",