Skip to content

Commit

Permalink
Add api schema and changelog for looking vulnerabilities from CPE
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Apr 26, 2022
1 parent 55aee23 commit 31582fc
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Version v30.0.0

- Add support for nix as a Linux deployemnet target.

- Lookup vulnerabilities from CPE



Version v20.10
Expand Down
43 changes: 42 additions & 1 deletion vulnerablecode/static/api_doc/api_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,47 @@ paths:
schema:
$ref: '#/components/schemas/Package'
description: ''
/api/cpes/:
get:
operationId: cpes_list
description: ''
tags:
- cpe
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedPackageList'
description: ''
/api/cpes?cpe={cpe}:
get:
operationId: cpes_retrieve
description: ''
parameters:
- in: path
name: cpe
schema:
type: string
description: A CPE, more info on CPE can be found here https://nvd.nist.gov/products/cpe
required: true
tags:
- cpe
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Package'
description: ''
/api/packages/bulk_search/:
post:
operationId: packages_bulk_search
Expand Down Expand Up @@ -420,4 +461,4 @@ components:
cookieAuth:
type: apiKey
in: cookie
name: Session
name: Session

0 comments on commit 31582fc

Please sign in to comment.