You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response will be a list of packages, these are packages
101
-
that are affected by and/or that fix a vulnerability.
63
+
that are affected by and/or that fix a vulnerability advisory.
102
64
103
65
API endpoints reference
104
66
--------------------------
105
67
106
-
There are two primary endpoints:
107
-
108
-
- packages/: this is the main endpoint where you can lookup vulnerabilities by package.
109
-
110
-
- vulnerabilities/: to lookup by vulnerabilities
111
-
112
-
And two secondary endpoints, used to query vulnerability aliases (such as CVEs)
113
-
and vulnerability by CPEs: cpes/ and aliases/
114
-
115
-
116
68
.. list-table:: Table for the main API endpoints
117
69
:widths: 30 40 30
118
70
:header-rows: 1
119
71
120
72
* - Endpoint
121
73
- Query Parameters
122
74
- Expected Output
123
-
* - ``/api/packages``
124
-
-
125
-
- ``purl`` (string) = package-url of the package
126
-
- ``type`` (string) = type of the package
127
-
- ``namespace`` (string) = namespace of the package
128
-
- ``name`` (string) = name of the package
129
-
- ``version`` (string) = version of the package
130
-
- ``qualifiers`` (string) = qualifiers of the package
131
-
- ``subpath`` (string) = subpath of the package
132
-
- ``page`` (integer) = page number of the response
133
-
- ``page_size`` (integer) = number of packages in each page
134
-
- Return a list of packages using a package-url (purl) or a combination of
135
-
type, namespace, name, version, qualifiers, subpath purl fields. See the
136
-
`purl specification <https://github.com/package-url/purl-spec>`_ for more details. See example at :ref:`Package Vulnerabilities Query` section for more details.
137
-
* - ``/api/packages/bulk_search``
138
-
- Refer to package bulk search section :ref:`Package Bulk Search`
139
-
- Return a list of packages
140
-
* - ``/api/vulnerabilities/``
75
+
* - POST ``/api/v3/packages/``
141
76
-
142
-
- ``vulnerability_id`` (string) = VCID (VulnerableCode Identifier) of the vulnerability
143
-
- ``page`` (integer) = page number of the response
144
-
- ``page_size`` (integer) = number of vulnerabilities in each page
145
-
- Return a list of vulnerabilities
146
-
* - ``/api/cpes``
77
+
- ``purls`` (array of strings) = List of package URLs ( a package-url (purl) or a combination of
78
+
type, namespace, name, version, qualifiers, subpath purl fields. See the
79
+
`purl specification <https://github.com/package-url/purl-spec>`_ for more details. )
80
+
- ``details`` (boolean) = Display all details about the packages provided
0 commit comments