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

Arrays As Query Parameters #13

Open
RomanTurner opened this issue May 17, 2023 · 0 comments
Open

Arrays As Query Parameters #13

RomanTurner opened this issue May 17, 2023 · 0 comments

Comments

@RomanTurner
Copy link

Hello, thanks for making this gem. It has been really great to use and easy to get up and running.
That being said, I ran into a small issue with the pagination link section when I use arrays as query parameters.

I am making the request: http://localhost:3002/api/recipes?include[]=photo&include[]=nutrition_summary

And getting the return:

}
...
"links": {
    "self": "http://localhost:3002/api/recipes?include=photo=nutrition_summary",
    "next": "http://localhost:3002/api/recipes?include=photo=nutrition_summary&page[number]=2",
    "last": "http://localhost:3002/api/recipes?include=photo=nutrition_summary&page[number]=693"
  }
}

Is there something I am missing from the configuration?

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