From a1da7a5f7a89b406d12f8fbb3d0365455bff2286 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Thu, 28 May 2026 13:17:55 +0000 Subject: [PATCH] Add parameterized builds to the index and openapi spec This change adds the new APIs to the /openapi page. Change-Id: I76ae6e452317e99a86897e95ea722f5c8dfc8614 --- web/public/openapi.yaml | 52 ++++++++++++++++++++++++++++++++++++++++- zuul/web/__init__.py | 2 ++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/web/public/openapi.yaml b/web/public/openapi.yaml index d34470bdba..61e1fff42f 100644 --- a/web/public/openapi.yaml +++ b/web/public/openapi.yaml @@ -1140,6 +1140,38 @@ paths: summary: '' tags: - tenant + /api/tenant/{tenant_name}/project/{project_name}/freeze-pipeline: + post: + operationId: project_freeze_pipeline + parameters: + - in: path + name: tenant_name + required: true + schema: + type: string + - in: path + name: project_name + required: true + schema: + type: string + requestBody: + description: '' + required: true + content: + application/json: + schema: + type: object + properties: + ref: + type: string + pipeline: + type: string + responses: + '200': + description: Response not yet documented + summary: '' + tags: + - tenant /api/tenant/{tenant_name}/pipeline/{pipeline_name}/project/{project_name}/branch/{branch_name}/freeze-job/{job_name}: get: operationId: project_freeze_job @@ -1327,8 +1359,26 @@ paths: tags: - tenant /api/tenant/{tenant_name}/project/{project_name}/enqueue: - get: + post: operationId: enqueue + requestBody: + description: '' + required: false + content: + application/json: + schema: + type: object + properties: + pipeline: + type: string + ref: + type: string + oldrev: + type: string + newrev: + type: string + parameters: + type: object parameters: - in: path name: tenant_name diff --git a/zuul/web/__init__.py b/zuul/web/__init__.py index 4ac43411b2..9875a9798f 100755 --- a/zuul/web/__init__.py +++ b/zuul/web/__init__.py @@ -1870,6 +1870,8 @@ class ZuulWebAPI(object): 'job': '/api/tenant/{tenant}/job/{job_name}', 'projects': '/api/tenant/{tenant}/projects', 'project': '/api/tenant/{tenant}/project/{project:.*}', + 'project_freeze_pipeline': '/api/tenant/{tenant}/project/' + '{project:.*}/freeze-pipeline', 'project_freeze_jobs': '/api/tenant/{tenant}/pipeline/{pipeline}/' 'project/{project:.*}/branch/{branch:.*}/' 'freeze-jobs',