13 Replies Latest reply on Jun 25, 2018 1:26 PM by arunmurty

    Cannot use filter on search/contents endpoint

    laurent.ducamp@ext.adeo.com

      Hi,

       

      I'm trying to use Jive Rest API and I can't solve an simple issue about search/contents endpoint.

       

      When I send query with REST CLIENT in firefox :

       

      GET https://younity.groupeadeo.com/api/core/v3/search/contents?filter=search(test,report)

      The result is ok :

      Status Code: 200 OK

       

      throw 'allowIllegalResourceCall is false.';

      {

        "itemsPerPage" : 25,

        "links" : {

        "next" : "https://younity.groupeadeo.com/api/core/v3/search/contents?collapse=false&sort=relevanceDesc&filter=search%28test%2Creport%29&origin=unknown&count=25&startIndex=25"

        },

        "list" : [ {

        "id" : "94145",

        "resources" : {

        "html" : {

        "allowed" : [ "GET" ],

        "ref" : "https://younity.groupeadeo.com/docs/DOC-94145"

        }

       

      When I'm trying to send query with author filter (or most of other filter describe in documention sample, they failed with HTTP code 400

       

      Example :

      When I just copy/paste the example to my previous url ... and change the filter like explain in docs  Jive REST API v3.13 → Search service . But it's ever failed !!!

       

       

      https://younity.groupeadeo.com/api/core/v3/search/contents?filter=after(2012-01-31T19:13:29.851+0000)

      https://younity.groupeadeo.com/api/core/v3/search/contents?filter=type(document,post)

      ...

      https://younity.groupeadeo.com/api/core/v3/search/contents?filter=outcomeType(HELPFUL)

       

      I have the same response :

      Status Code: 400 Bad Request

       

      throw 'allowIllegalResourceCall is false.';

      {

        "error" : {

        "message" : "You must specify a search filter with at least one keyword",

        "status" : 400,

        "code" : "filterMissing"

        }

      }

       

      I'm hosted, and my api version is :

       

      throw 'allowIllegalResourceCall is false.';

      {

        "jiveVersion" : "7.0.2.0 ",

        "jiveCoreVersions" : [ {

        "version" : 2,

        "revision" : 3,

        "uri" : "/api/core/v2",

        "documentation" : "https://developers.jivesoftware.com/api/v2/rest"

        }, {

        "version" : 3,

        "revision" : 4,

        "uri" : "/api/core/v3",

        "documentation" : "https://developers.jivesoftware.com/api/v3/rest"

        } ],

        "instanceURL" : "https://younity.groupeadeo.com",

        "jiveEdition" : {

        "product" : "on-prem",

        "tier" : 0

        },

        "ssoForOAuthGrantEnabled" : false

      }

       

      Where is my mistake ?

      Thank you in advance