Optional configuration for the API base URL
Returns a CategoryResource for a given CWE category ID, providing access to category details.
The returned resource can be awaited directly to fetch the full category.
The CWE category numeric ID (e.g. 189)
A chainable category resource
Looks up multiple CWE entries by their numeric IDs in a single request.
GET /cwe/{ids} (comma-separated)
Array of CWE numeric IDs (e.g. [74, 79])
Array of lightweight CWE entries with type and ID
Subscribes to a client event.
Fetches CWE content version metadata.
GET /cwe/version
Version metadata including content version, date, and counts
Returns a ViewResource for a given CWE view ID, providing access to view details.
The returned resource can be awaited directly to fetch the full view.
The CWE view numeric ID (e.g. 1425)
A chainable view resource
Returns a WeaknessResource for a given CWE weakness ID, providing access to weakness details and its hierarchy (parents, children, ancestors, descendants).
The returned resource can be awaited directly to fetch the full weakness, or chained to access hierarchy methods.
The CWE weakness numeric ID (e.g. 79)
A chainable weakness resource
Main entry point for the MITRE CWE API client.
Example