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

Changes

Changed in 3 of the 5 revisions of this API.242

  • 655593db051012See the full diff
    • the response's body type changed from array to object for status

      response-body-type-changed

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • removed the optional property // from the response with the status

      response-optional-property-removed

    • removed the optional property // from the response with the status

      response-optional-property-removed

  • dd1a325c030212See the full diff
    • the response's body type changed from object to array for status

      response-body-type-changed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog