Visitar URL original
feat: `add_auto_links` to affect only `self` links (not pagination) by grzuy · Pull Request #479 · beam-community/jsonapi · GitHub
Skip to content

feat: add_auto_links to affect only self links (not pagination) - #479

Draft
grzuy wants to merge 1 commit into
beam-community:mainfrom
pdqcom:break-pagination-links-free
Draft

grzuy wants to merge 1 commit into
beam-community:mainfrom
pdqcom:break-pagination-links-free

Conversation

@grzuy

@grzuy grzuy commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Hi 👋

As commented in part of #435, I think I find it odd that the add_auto_links setting does control pagination links?

Feels that the presence of pagination links can already be properly controlled by the view, by setting or not paginator option and pagination_links callback?

So if one want to disable all spec optional self links everywhere, it can't because it also turns off pagination.

Thoughts?

@grzuy grzuy changed the title feat(api): still serialize pagination links if add_auto_links: false feat(api): add_auto_links to affect only self links (not pagination) Nov 4, 2026
@grzuy grzuy changed the title feat(api): add_auto_links to affect only self links (not pagination) feat(api): add_auto_links to affect only self links (not pagination) Nov 4, 2026
@grzuy grzuy changed the title feat(api): add_auto_links to affect only self links (not pagination) feat: add_auto_links to affect only self links (not pagination) Nov 4, 2026
@Slotos

Slotos commented Nov 4, 2026

Copy link
Copy Markdown

This would definitely help me when I was trying to add a list-only resource to an API.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants