Skip to content

Commit 8e3cfe0

Browse files
authored
Restructure the API docs to make triage easier to use (#169)
Related to gardenlinux/glvd#156
1 parent a79454f commit 8e3cfe0

File tree

1 file changed

+59
-60
lines changed

1 file changed

+59
-60
lines changed

src/docs/asciidoc/index.adoc

Lines changed: 59 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,59 @@ Garden Linux Authors
55
:source-highlighter: highlightjs
66
:toc:
77

8-
== Overview
9-
108
This document describes the HTTP API endpoints of the Garden Linux Vulnerability Database (GLVD).
119

12-
CAUTION: This document and the API are work in progress and subject to change at any time.
10+
Find out more about GLVD at https://security.gardenlinux.org and https://github.com/gardenlinux/glvd.
1311

14-
== API Endpoints
12+
This document provides real HTTP requests and responses captured from API tests.
13+
The data shown is based on unit tests and may differ from production data, but the structure of requests and responses remains consistent.
1514

16-
=== List All Garden Linux Releases
15+
== Triage Data
1716

18-
Retrieve all known Garden Linux releases:
17+
Triage is the process where the Garden Linux security team evaluates security vulnerabilities (CVEs) to determine their impact on Garden Linux releases.
18+
Getting Triage data is one of the main features of the GLVD API.
1919

20-
include::{snippets}/getAllGardenLinuxVersions/curl-request.adoc[]
20+
=== List Triages for a Garden Linux Release
21+
22+
Retrieve triaged security vulnerabilities for a Garden Linux release.
23+
24+
include::{snippets}/triagesGardenlinux/curl-request.adoc[]
2125

2226
Example response:
2327

24-
include::{snippets}/getAllGardenLinuxVersions/http-response.adoc[]
28+
include::{snippets}/triagesGardenlinux/http-response.adoc[]
29+
30+
=== Get Triages for a CVE
31+
32+
Retrieve triage information for a specific CVE by its ID.
33+
34+
include::{snippets}/triagesCve/curl-request.adoc[]
35+
36+
Example response:
37+
38+
include::{snippets}/triagesCve/http-response.adoc[]
39+
40+
=== Get Triages for a Debian Source Package
41+
42+
Retrieve triage information for all CVEs related to a Debian source package.
43+
44+
include::{snippets}/triagesPackage/curl-request.adoc[]
45+
46+
Example response:
47+
48+
include::{snippets}/triagesPackage/http-response.adoc[]
49+
50+
=== List All Triages
51+
52+
Retrieve a list of triages regardless of the Garden Linux release.
53+
54+
include::{snippets}/triagesList/curl-request.adoc[]
55+
56+
Example response:
57+
58+
include::{snippets}/triagesList/http-response.adoc[]
59+
60+
== CVE Data
2561

2662
=== List CVEs by Distribution
2763

@@ -57,16 +93,6 @@ Example response:
5793

5894
include::{snippets}/getCveForPackagesPut/http-response.adoc[]
5995

60-
=== List Packages in a Distribution
61-
62-
Retrieve a list of packages for a given distribution.
63-
64-
include::{snippets}/getPackages/curl-request.adoc[]
65-
66-
Example response:
67-
68-
include::{snippets}/getPackages/http-response.adoc[]
69-
7096
=== Get Vulnerabilities for a Package
7197

7298
Retrieve vulnerabilities for a specific package.
@@ -97,9 +123,10 @@ Example response:
97123

98124
include::{snippets}/getPackagesByVulnerability/http-response.adoc[]
99125

100-
=== Get CVE Details with Context
126+
=== Get CVE Details with Triage Data
101127

102128
Retrieve information about a CVE by its ID.
129+
If triage data is available for this CVE, it is included in the response.
103130

104131
include::{snippets}/getCveDetailsWithContexts/curl-request.adoc[]
105132

@@ -130,62 +157,34 @@ Example response:
130157

131158
include::{snippets}/getCveDetailsNonDebian/http-response.adoc[]
132159

133-
=== Get Release Notes
134-
135-
Retrieve information about fixed security vulnerabilities in a new minor release.
136-
137-
include::{snippets}/releaseNotes/curl-request.adoc[]
138-
139-
Example response:
140-
141-
include::{snippets}/releaseNotes/http-response.adoc[]
142-
143-
=== Get Patch Release Notes (Legacy)
144-
145-
Retrieve information about fixed security vulnerabilities in a new patch release.
146-
147-
include::{snippets}/patchReleaseNotes/curl-request.adoc[]
148-
149-
Example response:
150-
151-
include::{snippets}/patchReleaseNotes/http-response.adoc[]
152-
153-
=== List Triages for a Garden Linux Release
154-
155-
Retrieve triaged security vulnerabilities for a Garden Linux release.
156-
157-
include::{snippets}/triagesGardenlinux/curl-request.adoc[]
158-
159-
Example response:
160-
161-
include::{snippets}/triagesGardenlinux/http-response.adoc[]
160+
== Garden Linux Release Data
162161

163-
=== Get Triages for a CVE
162+
=== List All Garden Linux Releases
164163

165-
Retrieve triage information for a specific CVE by its ID.
164+
Retrieve all known Garden Linux releases in GLVD.
166165

167-
include::{snippets}/triagesCve/curl-request.adoc[]
166+
include::{snippets}/getAllGardenLinuxVersions/curl-request.adoc[]
168167

169168
Example response:
170169

171-
include::{snippets}/triagesCve/http-response.adoc[]
170+
include::{snippets}/getAllGardenLinuxVersions/http-response.adoc[]
172171

173-
=== Get Triages for a Debian Source Package
172+
=== List Packages in a Distribution
174173

175-
Retrieve triage information for all CVEs related to a Debian source package.
174+
Retrieve a list of packages for a given distribution.
176175

177-
include::{snippets}/triagesPackage/curl-request.adoc[]
176+
include::{snippets}/getPackages/curl-request.adoc[]
178177

179178
Example response:
180179

181-
include::{snippets}/triagesPackage/http-response.adoc[]
180+
include::{snippets}/getPackages/http-response.adoc[]
182181

183-
=== List All Triages
182+
=== Get Release Notes
184183

185-
Retrieve a list of triages regardless of the Garden Linux release.
184+
Retrieve information about fixed security vulnerabilities in a minor release of Garden Linux.
186185

187-
include::{snippets}/triagesList/curl-request.adoc[]
186+
include::{snippets}/releaseNotes/curl-request.adoc[]
188187

189188
Example response:
190189

191-
include::{snippets}/triagesList/http-response.adoc[]
190+
include::{snippets}/releaseNotes/http-response.adoc[]

0 commit comments

Comments
 (0)