Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination links do not truncate existing pagination parameters #71

Closed
glungley opened this issue Jul 30, 2020 · 1 comment
Closed

Pagination links do not truncate existing pagination parameters #71

glungley opened this issue Jul 30, 2020 · 1 comment

Comments

@glungley
Copy link

https://github.com/thomaxxl/safrs/blame/master/safrs/jsonapi_formatting.py#L128

Once the pagination values have been set on the URL, they are included in first, last etc. links in the output json.

e.g.

    'links': {
        'first': 'http://#.#/api/table/?filter[table_id]=18&page[offset]=250&page[limit]=250&page[offset]=0&page[limit]=250',
        'last': 'http://#.#/api/table/?filter[table_id]=18&page[offset]=250&page[limit]=250&page[offset]=11000&page[limit]=250',
        'next': 'http://#.#/api/table/?filter[table_id]=18&page[offset]=250&page[limit]=250&page[offset]=500&page[limit]=250',
        'self': 'http://#.#/api/table/?filter[table_id]=18&page[offset]=250&page[limit]=250&page[offset]=250&page[limit]=250'
    },
@thomaxxl
Copy link
Owner

Thanks!

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

No branches or pull requests

2 participants