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 link error #129

Open
GuilhermeTrivilin opened this issue Jun 23, 2020 · 0 comments
Open

Pagination link error #129

GuilhermeTrivilin opened this issue Jun 23, 2020 · 0 comments

Comments

@GuilhermeTrivilin
Copy link

GuilhermeTrivilin commented Jun 23, 2020

The link that is sent as a response to the index request is not an existing link, when I try to access it I get the error below.

{
    "data": [
        (The answer for "data" is correct.)
    ],
    "links": {
        "self": "http://localhost:3007/api/clients?page%5Bnumber%5D=1&page%5Bsize%5D=2",
        "first": "http://localhost:3007/api/clients?page%5Bnumber%5D=1&page%5Bsize%5D=2",
        "prev": null,
        "next": "http://localhost:3007/api/clients?page%5Bnumber%5D=2&page%5Bsize%5D=2",
        "last": "http://localhost:3007/api/clients?page%5Bnumber%5D=4&page%5Bsize%5D=2"
    }
}

The returned links do not exist, when I try to make a request to access them I get:

Captura de Tela 2020-06-23 às 13 49 36

But when I try to access the link: http://localhost:3007/api/clients?page=2, everything works correctly

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

1 participant