JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources

Support pagination for ids in has-many link objects

Open
#86 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
Dominant language
Ruby
Stars
2.3k
Forks
546
PR merge metrics
No merged PRs in 30d

Description

JR should support pagination of the IDs returned in a request for a has-many link object.

For example a request to http://test.host/posts/1/links/tags should paginate the ids of the tags.

The pagination limits should be set separately for ids, since the payload is likely to be much smaller than for resources.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how has-many link objects handle requests and how existing resource pagination is implemented. The endpoint should paginate returned IDs and apply pagination limits separately from resource payload limits; verify the behavior with a request such as /posts/1/links/tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.