swh.web.vulns.api_views module#
- swh.web.vulns.api_views.api_revision_vulnerabilities(request: Request, sha1_git: str)[source]#
- GET /api/1/revision/(sha1_git)/directory/[(path)/]#
Get known vulnerabilities affecting the revision identified by
sha1_git. :statuscode 200: no error :statuscode 400: an invalid sha1_git value has been provided- Response JSON Array of Objects:
vulnerability.ids (array) – array of strings, each of which is an identifier of the vulnerability
string (source.version) – name of the tool used to identify the revision is vulnerable to this vulnerability
string – optional human-readable description of the tool’s configuration
string – name of the database the vulnerability report comes from
string – optional date of the database capture