Do User-Agent based formatting of output #863
Labels
api
API-related infrastructure
backlog
Important but currently unprioritized
enhancement
New feature or request
good first issue
Good for newcomers
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
The text was updated successfully, but these errors were encountered: