-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from gardenlinux/redefine-api
Specify the API in more modern ways
- Loading branch information
Showing
5 changed files
with
237 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Garden Linux Vulnerability Database | ||
contact: | ||
email: [email protected] | ||
license: | ||
name: MIT | ||
version: 0.1.0 | ||
servers: | ||
- url: http://localhost:5000/v1 | ||
tags: | ||
- name: cve | ||
description: Everything about CVE | ||
paths: | ||
/cves/findByCpe: | ||
get: | ||
tags: | ||
- cve | ||
summary: Finds CVE by CPE | ||
parameters: | ||
- name: cpeName | ||
in: query | ||
description: CPE name to search for, only Debian/Garden Linux related CPE can be used | ||
required: true | ||
schema: | ||
type: string | ||
- name: cvssV3Severity | ||
in: query | ||
description: Not implemented | ||
schema: | ||
type: string | ||
enum: | ||
- LOW | ||
- MEDIUM | ||
- HIGH | ||
- CRITICAL | ||
- name: debVersionEnd | ||
in: query | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: successful operation | ||
content: | ||
application/json: | ||
schema: {} | ||
'400': | ||
description: parameter is invalid | ||
/cves/{cveId}: | ||
get: | ||
tags: | ||
- cve | ||
summary: Find CVE by ID | ||
parameters: | ||
- name: cveId | ||
in: path | ||
description: ID of CVE | ||
required: true | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: successful operation | ||
content: | ||
application/json: {} | ||
'404': | ||
description: CVE not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.