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

Do User-Agent based formatting of output #863

Open
andrewpollock opened this issue Nov 29, 2022 · 3 comments
Open

Do User-Agent based formatting of output #863

andrewpollock opened this issue Nov 29, 2022 · 3 comments
Labels
api API-related infrastructure backlog Important but currently unprioritized enhancement New feature or request good first issue Good for newcomers

Comments

@andrewpollock
Copy link
Contributor

The default API output is "compact JSON", which makes sense for programmatic consumption, but makes human inspection less pleasant, e.g. browsing to https://api.osv.dev/v1/vulns/PYSEC-2021-112

It'd be cool if the API could do User-Agent based reformatting of the output, e.g. when detecting Chrome, do the moral equivalent of GET https://api.osv.dev/v1/vulns/PYSEC-2021-112 | jq

@andrewpollock andrewpollock added enhancement New feature or request api API-related infrastructure labels Nov 29, 2022
Copy link

This issue has not had any activity for 60 days and will be automatically closed in two weeks

@github-actions github-actions bot added the stale The issue or PR is stale and pending automated closure label Jul 27, 2024
Copy link

Automatically closing stale issue

@github-actions github-actions bot added the autoclosed Closed by automation label Aug 10, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2024
@another-rex another-rex removed stale The issue or PR is stale and pending automated closure autoclosed Closed by automation labels Aug 12, 2024
@another-rex another-rex reopened this Aug 12, 2024
@andrewpollock
Copy link
Contributor Author

IMO, since I filed this, there's more to be gained from using a JSON formatting browser extension (I'm currently using https://github.com/arnav-kr/json-formatter) which makes this far less of a priority to implement.

@andrewpollock andrewpollock added the good first issue Good for newcomers label Sep 10, 2024
@another-rex another-rex added the backlog Important but currently unprioritized label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API-related infrastructure backlog Important but currently unprioritized enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants