Skip to content

Commit

Permalink
[MNT-24127] Added Size Endpoint to calculate the size of folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-singh4 committed Mar 18, 2024
1 parent 25a08d1 commit f703fb6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/main/webapp/definitions/alfresco-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2940,6 +2940,31 @@ 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
'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"
Expand Down Expand Up @@ -10690,6 +10715,13 @@ definitions:
$ref: '#/definitions/PermissionsInfo'
definition:
$ref: '#/definitions/Definition'
FolderSizeResponse:
type: object
properties:
id:
type: string
size:
type: string
ProbeEntry:
type: object
required:
Expand Down

0 comments on commit f703fb6

Please sign in to comment.