Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-5368

Crowd REST API pagination does not function as documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 3.2.5
    • Documentation, REST
    • None

    Description

      Problem Description

      According to the REST API documentation for version 3.2.5, it should be possible to retrieve paged or paginated responses.

      However, when requests are made in the following manner

      curl http://crowd/crowd/rest/usermanagement/1/group/user/direct?groupname=jira-users&max-results=5&start-index=0\\ 
      

      We only receive a JSON response containing the first 5 users; there is no isLastPage or nextPage information.

      The documentation in this regard seems contradictory - in the section on Pagination, it says:

      "Clients can use the limit and start query parameters to retrieve the desired number of results."

      Additionally in the various method documentation, e.g. https://docs.atlassian.com/atlassian-crowd/3.2.5/REST/ it says that "max-results" and "start-index" will provide this function.

      Action points

      If this endpoint cannot return paginated data, then the documentation should be amended

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wmasters Will Masters
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: