Skip to content

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

@PulsarBlow

Description

@PulsarBlow

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions