tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.29k stars 672 forks source link

Display "Link" header values #305

Open lsloan opened 2 years ago

lsloan commented 2 years ago

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.