json-viewer icon indicating copy to clipboard operation
json-viewer copied to clipboard

Display "Link" header values

Open lsloan opened this issue 2 years ago • 0 comments

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.

lsloan avatar Sep 07 '21 18:09 lsloan