Skip to content

Question: Create Links from "complex" headers #2402

@meastp

Description

@meastp

I'm using the HTTP Link header for pagination in my API.

e.g. GET /items?limit=10&filter=active

returns a Link-header with Link: <https://example.com/features?limit=10&filter=active&cursor=a34Dsdf>; rel="next"

What I would like is for the auto-generation tools to be able to create a method e.g. "getNextPortion" that uses the parameters from the Link header to get the next n items.

Is this possible, or must I use "primitive" headers containing single integers and strings?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions