<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: REST API to access document rendered with associated template in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-to-access-document-rendered-with-associated-template/m-p/320977#M7978</link>
    <description>&lt;P&gt;I answer myself, after a more thorough reading of the documentation.&lt;/P&gt;
&lt;P&gt;The URL to get the rendered document is not in the /api/v1/etc... , but in the nxtemplate namespace; the URL nxtemplate/document-path@model-name renders the document and returns the rendered result.&lt;/P&gt;
&lt;P&gt;Example:
GET &lt;A href="http://nuxeo.mycompany.com:8080/nuxeo/nxtemplate/default/stages-conventions/convention-test-eleve-01@stage-convention-modele-01" target="test_blank"&gt;http://nuxeo.mycompany.com:8080/nuxeo/nxtemplate/default/stages-conventions/convention-test-eleve-01@stage-convention-modele-01&lt;/A&gt;
... returns a docx binary file,
Where:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;stages-conventions is a workspace directory,&lt;/LI&gt;
&lt;LI&gt;stage-convention-modele-01 is the name of a nuxeo template containing a docx template document&lt;/LI&gt;
&lt;LI&gt;convention-test-eleve-01 is a nuxeo document associated with the template&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 31 Mar 2017 07:47:51 GMT</pubDate>
    <dc:creator>Emmanuel_Otton</dc:creator>
    <dc:date>2017-03-31T07:47:51Z</dc:date>
    <item>
      <title>REST API to access document rendered with associated template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-to-access-document-rendered-with-associated-template/m-p/320976#M7977</link>
      <description>&lt;P&gt;Hi,
Having created a document with the REST API, I can, on the web interface, generate a docx file rendering, using a docx template associated with this document type.
Is it possible to programmatically generate this rendering, and access the docx file generated, with the REST API ?
Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 08:19:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/rest-api-to-access-document-rendered-with-associated-template/m-p/320976#M7977</guid>
      <dc:creator>Emmanuel_Otton</dc:creator>
      <dc:date>2017-03-29T08:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to access document rendered with associated template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/rest-api-to-access-document-rendered-with-associated-template/m-p/320977#M7978</link>
      <description>&lt;P&gt;I answer myself, after a more thorough reading of the documentation.&lt;/P&gt;
&lt;P&gt;The URL to get the rendered document is not in the /api/v1/etc... , but in the nxtemplate namespace; the URL nxtemplate/document-path@model-name renders the document and returns the rendered result.&lt;/P&gt;
&lt;P&gt;Example:
GET &lt;A href="http://nuxeo.mycompany.com:8080/nuxeo/nxtemplate/default/stages-conventions/convention-test-eleve-01@stage-convention-modele-01" target="test_blank"&gt;http://nuxeo.mycompany.com:8080/nuxeo/nxtemplate/default/stages-conventions/convention-test-eleve-01@stage-convention-modele-01&lt;/A&gt;
... returns a docx binary file,
Where:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;stages-conventions is a workspace directory,&lt;/LI&gt;
&lt;LI&gt;stage-convention-modele-01 is the name of a nuxeo template containing a docx template document&lt;/LI&gt;
&lt;LI&gt;convention-test-eleve-01 is a nuxeo document associated with the template&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 31 Mar 2017 07:47:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/rest-api-to-access-document-rendered-with-associated-template/m-p/320977#M7978</guid>
      <dc:creator>Emmanuel_Otton</dc:creator>
      <dc:date>2017-03-31T07:47:51Z</dc:date>
    </item>
  </channel>
</rss>

