Skip to content

Make GET request navigable #10

Description

@rafaelcamargo

At the moment, get requests respond with all results found. So, requests are taking very long for big amounts of data.
Make pagination enabled by default for any get requests. Suggestion:

  1. List 30 results per page by default
  2. Allow an optional query param called page.
  3. Allow an optional query param called pageSize to change the default value for the number of results per page.
  4. Include a link attribute in response header containing navigation details:
    • e.g.: Link: <https://api.github.com/users?page=2>; rel="next", <https://api.github.com/users?page=50>; rel="last"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions