10-30-2012 06:17 PM
How Can I test this restlet service,
<documentation>
Restlet for uploading a file via the Plugin (linked to FileManager)
(ie create a document from a file)
POST /nuxeo/restAPI/{repoId}/{docId}/pluginUpload/{path}
POST /nuxeo/restAPI/{repoId}/{docId}/createFromFile/{path}
</documentation>
<restletPlugin
name="pluginUpload"
class="org.nuxeo.ecm.platform.ui.web.restAPI.PluginUploadRestlet"
enabled="true"
useSeam="true"
useConversation="true">
<urlPatterns>
<urlPattern>/{repo}/{docid}/pluginUpload</urlPattern>
<urlPattern>/{repo}/{docid}/createFromFile</urlPattern>
</urlPatterns>
</restletPlugin>
I want to do my own restlet test how to send a pdf file and show it in the browser. Example: I send a pdf file and with my restlet create the headers, mimetype ... equal to previewReslet contributions but sending a file temp and show it from the restAPI
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.