CWE
All descendants of a specified weakness, sampling by the view
Changed onget/cwe/{id}/descendants
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Path parameters
idstring required
CWE ID
Query parameters
viewstring
The View_ID field specifies which view to follow in the Has_Member entries and ChildOf relationships to determine the appropriate descendants. If there are no descendants, the response will be empty. If no view is provided, the descendants in all views will be returned
Response
success
Example response
{
"Data": {
"Type": "class_weakness",
"ID": "671",
"ViewID": "1000"
},
"Children": [
{
"Data": {
"Type": "base_weakness",
"ID": "447",
"ViewID": "1000"
},
"Children": null
},
{
"Data": {
"Type": "base_weakness",
"ID": "798",
"ViewID": "1000"
},
"Children": [
{
"Data": {
"Type": "variant_weakness",
"ID": "259",
"ViewID": "1000"
},
"Children": null
},
{
"Data": {
"Type": "variant_weakness",
"ID": "321",
"ViewID": "1000"
},
"Children": null
}
]
}
]
}Changes
- breaking
the response's body type changed from
arraytoobjectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status
- warning