Skip to content

Commit

Permalink
[MNT-24127] Added Endpoint to calculate Size
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-singh4 committed Apr 17, 2024
1 parent 10f9fca commit d912264
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/main/webapp/definitions/alfresco-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,35 @@ paths:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
'/nodes/{nodeId}/calculateSize':
get:
tags:
- nodes
summary: Get folder size
description: |
Get the size of a folder
operationId: getFolderSize
produces:
- application/json
parameters:
- $ref: '#/parameters/nodeTargetIdParam'
responses:
'202':
description: Request Accepted
'200':
description: Successful response
schema:
$ref: '#/definitions/calculateSizeResponse'
'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}/secondary-children':
post:
Expand Down Expand Up @@ -10690,6 +10719,13 @@ definitions:
$ref: '#/definitions/PermissionsInfo'
definition:
$ref: '#/definitions/Definition'
calculateSizeResponse:
type: object
properties:
id:
type: string
size:
type: string
ProbeEntry:
type: object
required:
Expand Down

0 comments on commit d912264

Please sign in to comment.