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 and nextLink #354

Open
gunnarg-remitly opened this issue Aug 22, 2022 · 2 comments
Open

Pagination and nextLink #354

gunnarg-remitly opened this issue Aug 22, 2022 · 2 comments

Comments

@gunnarg-remitly
Copy link

I have a resource that is paginated, and I want to include a nextLink in the metadata of my response. I've tried by using the addMeta function on my QueryResult, but the metadata I add doesn't make it through the rendering. How do I include a nextLink? I think the renderer I'm using is the atom renderer.

Related question - how do I change renderers? Say like I wanted to return JSON?

@gunnarg-remitly
Copy link
Author

I'll answer one question - if you include Accept: application/json in the request header you'll get json

@gunnarg-remitly
Copy link
Author

I'll answer my other question - nextLink, deltaLink and delta are not supported currently.

But they look pretty straightforward to add, let's see if I can make an acceptable PR

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