v1

latestOpenAPI 3.0.3MIT2026-07-1792846.7 KB
CWE

All descendants of a specified weakness, sampling by the view

get/cwe/{id}/descendants

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
        }
      ]
    }
  ]
}