From 9489ac37383b6ccc5f66b232d524e9aa4666ac28 Mon Sep 17 00:00:00 2001 From: misherpal <135722877+misherpal@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:48:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20Rest=20API=20following?= =?UTF-8?q?=204.1.0=20and=204.2.0=20releases=20(#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 📝 Update Rest API following 4.1.0 and 4.2.0 releases --- swagger.json | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/swagger.json b/swagger.json index 39e1b30..8e94d13 100644 --- a/swagger.json +++ b/swagger.json @@ -387,6 +387,16 @@ } } }, + "400": { + "description": "Invalid input parameters.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectSettingsError" + } + } + } + }, "401" : { "description" : "The currently authenticated user does not have PROJECT_ADMIN credentials" }, @@ -461,6 +471,17 @@ } } }, + "ProjectSettingsError": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "ProjectTemplate" : { "type" : "object", "properties" : { @@ -729,10 +750,21 @@ }, "webhooks" : { "type" : "boolean" + }, + "defaultReviewers": { + "type": "boolean", + "description": "Requires Repository Permissions to be enabled" + }, + "pullRequestTemplate": { + "type": "boolean" + }, + "reviewerGroups": { + "type": "boolean", + "description": "Requires Repository Permissions to be enabled" } }, "description" : "choose all settings which should be copied (when creating a new repository with a template) or reset (when you have the periodic settings reset enabled below) from templates to their associated repositories" } } } - } \ No newline at end of file + }