Permalink
Browse files

REPO-4114 POST /nodes/{nodeId}/children api does not use Transform Se… (

#64)

* REPO-4114 POST /nodes/{nodeId}/children api does not use Transform Service for renditions

Changes also to allow multiple renditions to be requested.

The status code 404 is now returned when the rendition id (name) is unknown. Previously this would have been ignored when uploading new content. - Bug fix

The status code 409 is returned if all requested renditions have already been created when requesting new renditions. If some but not all have already been created this code is not returned. 409 was previously returned when the single rendition already existed.
  • Loading branch information...
alandavis committed Dec 19, 2018
1 parent e0e94a9 commit 74e46028a2ab1d708e0c2534ce6461a0f998e0d9
Showing with 15 additions and 4 deletions.
  1. +15 −4 src/main/webapp/definitions/alfresco-core.yaml
@@ -1232,7 +1232,7 @@ paths:
You can use the **nodeType** field to create a specific type. The default is cm:content.
You can use the **renditions** field to create renditions (e.g. doclib) asynchronously upon upload.
Note that currently only one rendition can be requested. Also, as requesting rendition is a background process,
Also, as requesting rendition is a background process,
any rendition failure (e.g. No transformer is currently available) will not fail the whole upload and has the potential to silently fail.
Use **overwrite** to overwrite an existing file, matched by name. If the file is versionable,
@@ -1417,7 +1417,7 @@ paths:
description: Current user does not have permission to create children of **nodeId**
'404':
description: |
**nodeId** does not exist
**nodeId** or **renditionId** does not exist
'409':
description: New name clashes with an existing node in the current parent folder
'413':
@@ -1806,6 +1806,17 @@ paths:
"id":"doclib"
}
```
Multiple names may be specified as a comma separated list or using a list format:
```JSON
[
{
"id": "doclib"
},
{
"id": "avatar"
}
]
```
operationId: createRendition
parameters:
- $ref: '#/parameters/nodeIdParam'
@@ -1830,9 +1841,9 @@ paths:
description: Current user does not have permission for **nodeId**
'404':
description: |
**nodeId** does not exist
**nodeId** or **renditionId** does not exist
'409':
description: Rendition already exists
description: All requested renditions already exist
'501':
description: Renditions/thumbnails are disabled for the system
default:

0 comments on commit 74e4602

Please sign in to comment.