Fetches the full weakness entry.
GET /cwe/weakness/{id}
The weakness object
Fetches the direct parents of this weakness in a given view.
GET /cwe/{id}/parents?view={viewId}
OptionalviewId: numberCWE view ID to scope the hierarchy (e.g. 1000)
Array of direct parent entries
Fetches the direct children of this weakness in a given view.
GET /cwe/{id}/children?view={viewId}
OptionalviewId: numberCWE view ID to scope the hierarchy (e.g. 1000)
Array of direct child entries
Fetches the full ancestor tree of this weakness in a given view.
GET /cwe/{id}/ancestors?view={viewId}
OptionalviewId: numberCWE view ID to scope the hierarchy (e.g. 1000)
Recursive ancestor tree from this node up to the view root
Fetches the full descendant tree of this weakness in a given view.
GET /cwe/{id}/descendants?view={viewId}
OptionalviewId: numberCWE view ID to scope the hierarchy (e.g. 1000)
Recursive descendant tree from this node down to leaf entries
Represents a CWE weakness resource, providing access to weakness details and its position in the CWE hierarchy.
Implements
PromiseLike<CweWeakness>so it can be awaited directly to fetch the full weakness, while also exposing hierarchy methods.Example