Skip to content

API: Apply limit by default rather than returning all records #1074

@matthew-white

Description

@matthew-white

By default, sending a request for submissions will return all submissions even if there are very many of them. This issue is to apply a limit by default. In other words, we should paginate by default and apply a page size (of 100 records?).

Not all endpoints support pagination, and this issue does not aim to change that. An example of that is the form list endpoint. This issue is to apply a default page size for the following endpoints that already support pagination:

  • Submission list (OData)
  • Submission list (REST API)
  • Entity list (OData)
    • I don't think the REST API currently supports pagination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendRequires a change to the API serverneeds discussionDiscussion needed before work can begin

    Type

    No type

    Projects

    Status

    🕒 backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions