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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support easy access to the json version of a vulnerability #2152

Open
G-Rath opened this issue May 1, 2024 · 5 comments
Open

Support easy access to the json version of a vulnerability #2152

G-Rath opened this issue May 1, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request frontend Frontend Infrastructure

Comments

@G-Rath
Copy link
Collaborator

G-Rath commented May 1, 2024

Is your feature request related to a problem? Please describe.
"I'm always frustrated when ..." I keep having to lookup the API endpoint for getting the JSON of an osv 馃槄

Describe the solution you'd like
Having a link to the underlying JSON data that is used by the api, or something like supporting adding .json to the end of the URL to show the JSON version.

Describe alternatives you've considered
Writing the api path on a sticky note, but I'm concerned if I add too many more of those my monitor will fall off my desk due to the weight :/

@G-Rath G-Rath added the enhancement New feature or request label May 1, 2024
@another-rex
Copy link
Contributor

another-rex commented May 2, 2024

A current two click workaround is going to https://osv.dev/CVE-2023-45802 and then clicking the import source link, which should give you the JSON.

Though allowing .json to be appended directly to the URL is probably still a good idea.

@G-Rath
Copy link
Collaborator Author

G-Rath commented May 2, 2024

I almost mentioned that but I didn't - the import source is useful but not quite the same since part of the APIs role is cleaning up/improving/whatevering the osv from the original source and sometimes that isn't even json (e.g. for https://osv.dev/vulnerability/PYSEC-2024-50 the source is YAML).

@oliverchang
Copy link
Collaborator

oliverchang commented May 3, 2024

Can you file a feature request in the OSV.dev repo to support a .json URL suffix ? We can probably easily redirect to https://api.osv.dev/v1/vulns/ID

@G-Rath
Copy link
Collaborator Author

G-Rath commented May 3, 2024

Is there an actual other repository you'd like an issue opened against, or was that just a case of Friday-afternoon-brain? 馃槄

@oliverchang
Copy link
Collaborator

Friday-afternoon-brain :) My bad!

@oliverchang oliverchang added the frontend Frontend Infrastructure label May 3, 2024
@ZhangChen199102 ZhangChen199102 self-assigned this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Frontend Infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants