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

[Sample SimpleApi] A Link value for the last page of the collection #3

Open
PulsarBlow opened this issue Oct 4, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@PulsarBlow
Copy link
Owner

Feature request

Description

When fetching the SimpleApi value collection, the response doesn't set a Link relation for the last page of the collection.

Example

Request

GET https://localhost:5001/api/values?offset=10&limit=10

Actual response Link header

Link: <https://localhost:5001/api/values?offset=0&limit=10>; rel="start",<https://localhost:5001/api/values?offset=0&limit=10>; rel="previous",<https://localhost:5001/api/values?offset=20&limit=10>; rel="next"

Expected response Link header

Link: <https://localhost:5001/api/values?offset=0&limit=10>; rel="start",<https://localhost:5001/api/values?offset=0&limit=10>; rel="previous",<https://localhost:5001/api/values?offset=20&limit=10>; rel="next",<https://localhost:5001/api/values?offset=90&limit=10>; rel="last"

@PulsarBlow PulsarBlow added the enhancement New feature or request label Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant