From: Marcin Haba Date: Fri, 15 Sep 2023 08:23:18 +0000 (+0200) Subject: baculum: Update API documentation X-Git-Tag: Release-13.0.4~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c1eef72fb062e984e9d0782017fa4276a2bdc08;p=thirdparty%2Fbacula.git baculum: Update API documentation --- diff --git a/gui/baculum/protected/API/openapi_baculum.json b/gui/baculum/protected/API/openapi_baculum.json index baa61b546..f4be1a62a 100644 --- a/gui/baculum/protected/API/openapi_baculum.json +++ b/gui/baculum/protected/API/openapi_baculum.json @@ -522,6 +522,48 @@ "parameters": [{ "$ref": "#/components/parameters/ClientId" }] + }, + "delete": { + "tags": ["clients"], + "summary": "Delete client", + "description": "Delete client by specific client identifier.", + "responses": { + "200": { + "description": "Delete client command output and error code.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "description": "Console output from removing client", + "type": "string" + } + }, + "error": { + "type": "integer", + "description": "Error code", + "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000] + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "clientid", + "in": "path", + "description": "Client identifier", + "required": true, + "schema": { + "type": "integer" + } + } + ] } }, "/api/v2/clients/{clientid}/show": { @@ -1276,7 +1318,7 @@ "description": "Delete job by specific Job identifier.", "responses": { "200": { - "description": "Job properties", + "description": "Delete jobid command output and error code.", "content": { "application/json": { "schema": { @@ -3947,6 +3989,48 @@ "parameters": [{ "$ref": "#/components/parameters/PoolId" }] + }, + "delete": { + "tags": ["pools"], + "summary": "Delete pool", + "description": "Delete pool by specific pool identifier.", + "responses": { + "200": { + "description": "Delete pool command output and error code.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "description": "Console output from removing pool", + "type": "string" + } + }, + "error": { + "type": "integer", + "description": "Error code", + "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 40, 1000] + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "poolid", + "in": "path", + "description": "Pool identifier", + "required": true, + "schema": { + "type": "integer" + } + } + ] } }, "/api/v2/pools/{poolid}/volumes": { @@ -8580,6 +8664,48 @@ } } ] + }, + "delete": { + "tags": ["objects"], + "summary": "Delete object", + "description": "Delete object by specific object identifier.", + "responses": { + "200": { + "description": "Delete object command output and error code.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "description": "Console output from removing object", + "type": "string" + } + }, + "error": { + "type": "integer", + "description": "Error code", + "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 500, 1000] + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "objectid", + "in": "path", + "description": "Object identifier", + "required": true, + "schema": { + "type": "integer" + } + } + ] } }, "/api/v2/objects/versions/{objectuuid}": {