Library CWEs

Get All Library CWEs

This endpoint retrieves a list of Library CWE resources.

GET /api/v2/library/cwes/

Query Parameters

The following parameters may be used to filter the Library CWE resources in the response.

Parameter Description
search Filter Library CWEs by performing a textual search on its id or title.
GET /api/v2/library/cwes/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "results": [
        {
            "id": 1,
            "title": "Environment [Category]",
            "url": "http://cwe.mitre.org/data/definitions/1"
        },
        {
            "id": 2,
            "title": ".NET Misconfiguration: Data Transmission without Encryption [Variant]",
            "url": "http://cwe.mitre.org/data/definitions/2"
        },
        {
            "id": 3,
            "title": "DEPRECATED: Technology-specific Overflow Issues [Category]",
            "url": "http://cwe.mitre.org/data/definitions/3"
        }
    ]
}

Get a specific Library CWE

This endpoint retrieves a single Library CWE resource, as specified by the id parameter.

GET /api/v2/library/cwes/{cwe_id}/

URL Parameters

Parameter Description
cwe_id The id of the Library CWE to retrieve.
GET /api/v2/library/cwes/6/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "id": 6,
    "title": "Example Common Weakness Enumerator",
    "url": "http://cwe.mitre.org/data/definitions/6"
}

results matching ""

    No results matching ""