<?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: Webadapter based REST api response filtering in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/webadapter-based-rest-api-response-filtering/m-p/318066#M5067</link>
    <description>&lt;P&gt;The &lt;CODE&gt;@search&lt;/CODE&gt; is a good idea but as you saw &lt;CODE&gt;ecm:path STARTSWITH '/default-domain/sections/section1'&lt;/CODE&gt; will give you too many levels. You would like something like &lt;CODE&gt;ecm:parentPath = '/default-domain/sections/section1'&lt;/CODE&gt; but this doesn't exist. Please open a ticket with the &lt;EM&gt;Report A Bug&lt;/EM&gt; button at the right if you feel this is a worthwhile addition.&lt;/P&gt;
&lt;P&gt;At the moment I think you need two requests, one to get the id of the &lt;CODE&gt;/default-domain/sections/section1&lt;/CODE&gt; document, then use a &lt;CODE&gt;@search&lt;/CODE&gt; with &lt;CODE&gt;ecm:parentId = 'the-id-for-section1'&lt;/CODE&gt; and the rest of your filter.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2015 14:09:07 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2015-06-18T14:09:07Z</dc:date>
    <item>
      <title>Webadapter based REST api response filtering</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/webadapter-based-rest-api-response-filtering/m-p/318065#M5066</link>
      <description>&lt;P&gt;I want the immediate children of a path and I also want to filter based on dc:language attribute. I tried the following:
&lt;A href="http://localhost/nuxeo/site/api/v1/path/default-domain/sections/section1/@children?query=Select" target="test_blank"&gt;http://localhost/nuxeo/site/api/v1/path/default-domain/sections/section1/@children?query=Select&lt;/A&gt; * from Document where dc:language = 'English'&lt;/P&gt;
&lt;P&gt;This did not work since the @children does not take a query parameter. I also tried @search with the "ecm:path startswith default-domain/sections/section1 and dc:language='English'" but then this gives me the entire folder tree underneath section1&lt;/P&gt;
&lt;P&gt;Is there a way to get just the first level of content along with a way to filter based on one or more attributes.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2015 20:21:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/webadapter-based-rest-api-response-filtering/m-p/318065#M5066</guid>
      <dc:creator>jyr_</dc:creator>
      <dc:date>2015-06-07T20:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Webadapter based REST api response filtering</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/webadapter-based-rest-api-response-filtering/m-p/318066#M5067</link>
      <description>&lt;P&gt;The &lt;CODE&gt;@search&lt;/CODE&gt; is a good idea but as you saw &lt;CODE&gt;ecm:path STARTSWITH '/default-domain/sections/section1'&lt;/CODE&gt; will give you too many levels. You would like something like &lt;CODE&gt;ecm:parentPath = '/default-domain/sections/section1'&lt;/CODE&gt; but this doesn't exist. Please open a ticket with the &lt;EM&gt;Report A Bug&lt;/EM&gt; button at the right if you feel this is a worthwhile addition.&lt;/P&gt;
&lt;P&gt;At the moment I think you need two requests, one to get the id of the &lt;CODE&gt;/default-domain/sections/section1&lt;/CODE&gt; document, then use a &lt;CODE&gt;@search&lt;/CODE&gt; with &lt;CODE&gt;ecm:parentId = 'the-id-for-section1'&lt;/CODE&gt; and the rest of your filter.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 14:09:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/webadapter-based-rest-api-response-filtering/m-p/318066#M5067</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2015-06-18T14:09:07Z</dc:date>
    </item>
  </channel>
</rss>

