diff --git a/src/main/webapp/definitions/alfresco-core.yaml b/src/main/webapp/definitions/alfresco-core.yaml index 625717be..c89c4b9e 100755 --- a/src/main/webapp/definitions/alfresco-core.yaml +++ b/src/main/webapp/definitions/alfresco-core.yaml @@ -2940,6 +2940,33 @@ paths: description: Unexpected error schema: $ref: '#/definitions/Error' + '/nodes/{nodeId}/size': + get: + tags: + - nodes + summary: Get folder size + description: | + Get the size of a folder + operationId: getFolderSize + produces: + - application/json + parameters: + - $ref: '#/parameters/nodeTargetIdParam' + responses: + '200': + description: Successful response + schema: + $ref: '#/definitions/FolderSizeResponse' + '401': + description: Authentication failed + '403': + description: Current user does not have permission for **nodeId** + '404': + description: Entity with **nodeId** does not exist + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' '/nodes/{nodeId}/versions': get: x-alfresco-since: "5.2" @@ -10690,6 +10717,13 @@ definitions: $ref: '#/definitions/PermissionsInfo' definition: $ref: '#/definitions/Definition' + FolderSizeResponse: + type: object + properties: + id: + type: string + size: + type: string ProbeEntry: type: object required: