trow icon indicating copy to clipboard operation
trow copied to clipboard

Support Link header for pagination

Open amouat opened this issue 4 years ago • 5 comments

From the spec:

"Compliant client implementations SHOULD always use the Link header value when proceeding through results linearly."

This affects the catalog api etc.

amouat avatar Mar 23 '20 21:03 amouat

@amouat I just want to confirm this is the correct page of the spec. https://github.com/opencontainers/distribution-spec/blob/master/spec.md#pagination I'm going to take a crack at adding the header.

cpitkin avatar Jun 03 '20 01:06 cpitkin

That would fantastic, thanks! Yes, that's the right place. You'll probably need to look into Rocket return types. There's a few examples in the code, but feel free to e-mail me if you'd like any help or pointers.

amouat avatar Jun 03 '20 11:06 amouat

@amouat I'm not going to have time over the next month to work on this feature.

cpitkin avatar Jun 24 '20 22:06 cpitkin

No problem @cpitkin. Thanks for taking a look anyway!

amouat avatar Jul 07 '20 10:07 amouat

I would be up for attempting this issue.

imacg avatar Sep 29 '20 17:09 imacg