From f241a3166a27ac085cc88ff3fd6a7af7bd9a2e6d Mon Sep 17 00:00:00 2001 From: Mohit Singh Date: Wed, 7 Aug 2024 21:53:23 +0530 Subject: [PATCH] [feature/MNT-24127-AddedEndpointToCalculateTheFolderSize] Added swagger endpoints to calculate folder size --- .../webapp/definitions/alfresco-core.yaml | 25 +++---------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/main/webapp/definitions/alfresco-core.yaml b/src/main/webapp/definitions/alfresco-core.yaml index ccc1fcfc..cb33f53d 100755 --- a/src/main/webapp/definitions/alfresco-core.yaml +++ b/src/main/webapp/definitions/alfresco-core.yaml @@ -129,16 +129,6 @@ parameters: description: The identifier of a folder node. required: true type: string - maxItemsForSizeParam: - name: maxItems - in: query - description: | - ```MaxItems``` ***parameter*** to partition a huge folder into smaller chunks so that we can compute more efficiently and consolidate all sizes into a single unit. - required: false - type: integer - minimum: 1 - maximum: 1000 - default: 100 nodeMinimalEntryIncludeParam: name: include in: query @@ -2220,16 +2210,13 @@ paths: the request has been accepted successfully. The response body will include the ```nodeId``` of the pending action, which can be used in a - **GET/get-folder-size** endpoint to check if the action's status has been completed, at which point the result will be returned, comprising ```the size of the node in bytes```. - - Here, We are taking ```maxItems``` ***parameter*** to partition a huge folder into smaller chunks so that we can compute more efficiently and consolidate all sizes into a single unit. + **GET/size** endpoint to check if the action's status has been completed, at which point the result will be returned, comprising ```the size of the node in bytes```. operationId: calculateSize produces: - application/json parameters: - $ref: '#/parameters/nodeTargetIdParam' - - $ref: '#/parameters/maxItemsForSizeParam' responses: '202': description: Request Accepted @@ -2239,8 +2226,6 @@ paths: description: Authentication failed '403': description: Current user does not have permission for **nodeId** - '404': - description: Entity with **nodeId** does not exist '422': description: | Invalid parameter: value of **nodeId** is invalid @@ -2248,7 +2233,7 @@ paths: description: Unexpected error schema: $ref: '#/definitions/Error' - '/nodes/{nodeId}/get-folder-size': + '/nodes/{nodeId}/size': get: tags: - nodes @@ -2279,8 +2264,6 @@ paths: description: Authentication failed '403': description: Current user does not have permission for **nodeId** - '404': - description: Entity with **nodeId** does not exist '422': description: | Invalid parameter: value of **nodeId** is invalid @@ -10806,9 +10789,9 @@ definitions: sizeAcknowledgedResponse: type: object properties: - nodeId: + message: type: string - description: Provides nodeId indicating that the request has been acknowledged. + description: Provides response indicating that the request has been acknowledged. ProbeEntry: type: object required: