4 Replies Latest reply on Nov 20, 2015 7:49 AM by jeph.yang

    problem with REST endpoint places{id}/contents

    laurent.ducamp@ext.adeo.com

      Hi,

       

      We trying to use rest api but we have an issue.

       

      I want to get content from a community

       

      GET https://younity.groupeadeo.com/api/core/v3/places/198244/contents

       

      I obtain a content paginated list of 25 element.

       

      https://younity.groupeadeo.com/api/core/v3/places/198244/contents?sort=dateCreatedDesc&fields=%40all&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&abridged=false&count=25&startIndex=25

      I get the next url value, and do the request for getting next 25 items:

      https://younity.groupeadeo.com/api/core/v3/places/198244/contents?sort=dateCreatedDesc&fields=%40all&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&abridged=false&count=25&startIndex=50

      But, the next url link ever grows  !!!

       

      https://younity.groupeadeo.com/api/core/v3/places/198244/contents?sort=dateCreatedDesc&fields=%40all&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&abridged=false&count=25&startIndex=75

      it grows again !!

      ...

       

      https://younity.groupeadeo.com/api/core/v3/places/198244/contents?sort=dateCreatedDesc&fields=%40all&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&abridged=false&count=25&startIndex=100

       

      it grows again !!

      ...

       

      https://younity.groupeadeo.com/api/core/v3/places/198244/contents?sort=dateCreatedDesc&fields=%40all&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&filter=place%28https%3A//younity.groupeadeo.com/api/core/v3/places/198244%29&abridged=false&count=25&startIndex=125

       

      It sounds like a bug, because we could reached the GET limit size.

       

      Is-it normal ?