I have read about Restlet in Nuxeo Reference but I want to ask you for the restlet you sent me what is a tipicall to create a document with a given type.
Olivier Grisel <[EMAIL PROTECTED]> wrote: Please stay on the list, nego ady a écrit : > you could please take a look at the function > public void createDocumentByFileUpload(String wsurl, String filePath, > String targetFileName) > from the sample file: > https://svn.nuxeo.org/nuxeo/sandbox/nuxeo-restapi-sample/trunk/src/main/java/org/nuxeo/ecm/platforme/restapi/sample/TestAPI.java > > and tell me how can I modify the document type to "Folder" As I said earlier twice, why don't you look at the reslet API that comes by default in nuxeo-platform-ui-web? This reslet in particular: http://hg.nuxeo.org/nuxeo/nuxeo-platform/file/bd88c3c38134/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/restAPI/CreateDocumentRestlet.java seems to do exactly what you want. -- Olivier _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
