diff --git a/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/convertAdapter.ftl b/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/convertAdapter.ftl index 4c35a09c1a4..791d3007339 100644 --- a/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/convertAdapter.ftl +++ b/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/convertAdapter.ftl @@ -26,7 +26,7 @@ "method":"GET", "nickname":"convertDocumentBlobByPath", "type":"documents", - <@params names = ["docpath", "convertName", "convertType", "convertFormat"]/>, + <@params names = ["docpath", "blobxpath", "convertName", "convertType", "convertFormat"]/>, "summary":"Convert the Blob at the given xpath of the document", "notes": "One of the 'name', 'type' or 'format' parameters must be passed.", <#include "views/doc/errorresponses.ftl"/> @@ -51,14 +51,14 @@ }, { - "path": "/path/{docId}/@blob/{blobXpath}/@convert", + "path": "/id/{docId}/@blob/{blobXpath}/@convert", "description": "Convert the Blob at the given xpath of the document", "operations" : [ { "method":"GET", "nickname":"convertDocumentBlobById", "type":"documents", - <@params names = ["docid", "convertName", "convertType", "convertFormat"]/>, + <@params names = ["docid", "blobxpath", "convertName", "convertType", "convertFormat"]/>, "summary":"Convert the Blob at the given xpath of the document", "notes": "One of the 'name', 'type' or 'format' parameters must be passed.", <#include "views/doc/errorresponses.ftl"/> diff --git a/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/paramtypes/blobxpath.ftl b/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/paramtypes/blobxpath.ftl new file mode 100644 index 00000000000..fabb73d657b --- /dev/null +++ b/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/paramtypes/blobxpath.ftl @@ -0,0 +1,7 @@ +{ + "paramType": "path", + "name": "blobXpath", + "description": "XPath of the blob", + "dataType": "string", + "required": true +}