JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources
Support pagination for ids in has-many link objects
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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