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 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 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
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
Allows the resource to be awaited directly, resolving with the full weakness. Delegates to WeaknessResource.get.
Optionalonfulfilled: null | (value: CweWeakness) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
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