odata icon indicating copy to clipboard operation
odata copied to clipboard

Pagination and `nextLink`

Open gunnarg-remitly opened this issue 3 years ago • 2 comments

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 avatar Aug 22 '22 22:08 gunnarg-remitly

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

gunnarg-remitly avatar Aug 22 '22 23:08 gunnarg-remitly

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

gunnarg-remitly avatar Aug 23 '22 14:08 gunnarg-remitly