Skip to content

Survey Responses: Unclear Pagination Documentation and Pagination Bug #187

Description

@homestar9

This issue is related to the documentation of the "List Responses" API endpoint at /resources/v1/survey/ext/list/responses/survey_id

  1. The documentation says that a page parameter can be passed, however, it would appear that your system starts the first page at "0", not "1". The documentation shows a page "1" as the example. You should indicate somewhere that your pagination for this endpoint starts at 0. Note: I also checked the #Pagination section, but it lists a completely different way of paginating data.

  2. When retrieving data, the response object hasNext key will always be "false" even if more pages exist. I suspect this is a bug. Example:

{
    "responseList": [...],
    "totalResponses": 146,
    "overallResponses": 146,
    "pageNo": 0, // <-- pagination is zero-based I guess? This should be documented.
    "pageSize": 100,
    "hasNext": false, <-- Should be true
    "surveyType": "traditional",
    "surveyName": "Customer Satisfaction Survey",
    "surveyId": xxxxxx
}

Hope this information helps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions