From: Marcin Haba Date: Mon, 22 Apr 2019 07:43:59 +0000 (+0200) Subject: baculum: Add client ls command to openapi file X-Git-Tag: Release-9.4.3~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2cd6866d199d2c34cdd22330c4cb62ac0e6e455;p=thirdparty%2Fbacula.git baculum: Add client ls command to openapi file --- diff --git a/gui/baculum/protected/API/openapi_baculum.json b/gui/baculum/protected/API/openapi_baculum.json index 4d0772d5c..4d09c54d0 100644 --- a/gui/baculum/protected/API/openapi_baculum.json +++ b/gui/baculum/protected/API/openapi_baculum.json @@ -463,6 +463,54 @@ }] } }, + "/api/v1/clients/{clientid}/ls": { + "get": { + "tags": ["clients"], + "summary": "List Client files/directories", + "description": "Get list Client files/directories for specific path", + "responses": { + "200": { + "description": "Client list files/directories output", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "type": "string", + "description": "Client files/directories list output" + } + }, + "error": { + "type": "integer", + "description": "Error code", + "enum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 1000] + } + } + } + } + } + } + }, + "parameters": [ + { + "$ref": "#/components/parameters/ClientId" + }, + { + "name": "path", + "in": "query", + "required": true, + "description": "Path on Client", + "schema": { + "type": "string", + "pattern": "[p{L}p{N}p{Z}[]()-+/:.#~_,{}!']{1,10000}" + } + } + ] + } + }, "/api/v1/clients/show": { "get": { "tags": ["clients"],