Skip to content
Snippets Groups Projects

feat: Migrate loading cache to new service + removed stub service

15 files
+ 329
342
Compare changes
  • Side-by-side
  • Inline
Files
15
+ 56
19
openapi: "3.1.0"
info:
version: 1.0.0
title: CVE API
@@ -6,24 +7,33 @@ info:
license:
name: Eclipse Public License - 2.0
url: https://www.eclipse.org/legal/epl-2.0/
contact:
url: https://gitlab.eclipse.org/eclipsefdn/it/api/eclipsefdn-cve-api/-/issues
servers:
- url: https://api.eclipse.org/cve
description: Production endpoint for the membership portal data
tags:
- name: CVE
description: Eclipse CVE data
paths:
"":
/:
get:
tags:
- CVEs
- CVE
summary: CVE List
description: Returns a 200 when called. Pop goes the weasel!
description: Fetches all public CVE data.
operationId: CveList
responses:
200:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/cves"
500:
"500":
description: Error while retrieving data
/{id}:
parameters:
@@ -34,53 +44,68 @@ paths:
schema:
type: string
get:
tags:
- CVE
summary: CVE
description: Returns a CVE entry that has a matching id
operationId: Cve
responses:
200:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/cve"
404:
"404":
description: Not Found
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
500:
"500":
description: Error while retrieving data
components:
schemas:
cves:
type: array
items:
$ref: "#/components/schemas/cve"
example:
- id: CVE-2020-12345
date_published: 2020-03-17
project: eclipse.platform
request_link: https://bugs.eclipse.org/bugs/show_bug.cgi?id=12345
cve_pull_request: https://github.com/CVEProject/cvelist/pull/1111
status: PUBLIC
summary: This is the summary of the horrific security flaw that we fixed
cvss: 9.9
- id: CVE-2022-54321
date_published: 2022-06-01
project: technology.dash
request_link: https://bugs.eclipse.org/bugs/show_bug.cgi?id=54321
cve_pull_request: ""
status: PUBLIC
summary: This is the summary of the minor vulnerablity
cvss: 2.0
cve:
type: object
properties:
id:
oneOf:
- type: string
- type: "null"
type: string
description: CVE id containing year
date_published:
type: string
description: The date of the report
project:
oneOf:
- type: string
- type: "null"
type: string
description: The project where the vulerability exists
request_link:
type: string
description: Link to the request where the vulnerability was tracked
cve_pull_request:
oneOf:
- type: string
- type: "null"
type: string
description: Link to pull request that includes the vulnerability
live_link:
type: string
@@ -98,6 +123,15 @@ components:
- type: number
- type: "null"
description: The CVSS score pulled from the CVE details source
example:
id: CVE-2020-12345
date_published: 2020-03-17
project: eclipse.platform
request_link: https://bugs.eclipse.org/bugs/show_bug.cgi?id=12345
cve_pull_request: https://github.com/CVEProject/cvelist/pull/1111
status: PUBLIC
summary: This is the summary of the horrific security flaw that we fixed
cvss: 9.9
Error:
type: object
@@ -113,4 +147,7 @@ components:
- string
- "null"
description: The URL
example:
status_code: 404
message: "Unable to find public CVE with id: 999"
url: null
Loading