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

Display "Link" header values #305

Open
lsloan opened this issue Sep 7, 2021 · 0 comments
Open

Display "Link" header values #305

lsloan opened this issue Sep 7, 2021 · 0 comments

Comments

@lsloan
Copy link

lsloan commented Sep 7, 2021

MAny APIs that I work that produce JSON output also include a "Link" header with values like…

<https://example.com/api/v1/accounts/1/external_tools?page=1>; rel="current",<https://example.com/api/v1/accounts/1/external_tools?page=1>; rel="first",<https://example.com/api/v1/accounts/1/external_tools?page=2>; rel="next",<https://example.com/api/v1/accounts/1/external_tools?page=5>; rel="last"

That lets the API user know whether more data is available and how many pages are involved.

Rather than opening the developer tools to search for this information, I'd really appreciate it if json-viewer included that near the top of the page along with the comments for the request timestamp and URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant