How Can I test this restlet for upload files

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

0 votes

0 answers

1586 views

ANSWER