tulios/json-viewer

Display "Link" header values

Opened this issue · 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.