Reports

Resource Operation Description
Reports GET /reports Get the list of reports.
  GET /reports/(string:id) Get a specific report.
GET /reports

Get the list of reports.

Example request:

GET /reports HTTP/1.1
Host: api.saucs.com
Accept: application/json

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json

[
  {
      "id": "28HW4RZ3JRYJ",
      "created_at": "2017-10-27 09:00:42Z",
      "handlers": [
          "apache",
          "apple",
          "ibm",
          "oracle",
          "wordpress"
      ]
  },
  {
      "id": "SBX5F9I0X63K",
      "created_at": "2017-10-26 09:00:35Z",
      "handlers": [
          "apple",
          "ibm",
          "microsoft"
      ]
  }
]
Query Parameters:
 
  • page – page number. default is 1
Response Headers:
 
Status Codes:
  • 200 OK – list of reports found
GET /reports/(string: id)

Get a specific report.

Example request:

GET /reports/RVEEAHJDHQUS HTTP/1.1
Host: api.saucs.com
Accept: application/json

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json

{
  "alerts": [
      {
          "cve": "CVE-2017-9805",
          "created_at": "2017-10-04 14:31:00Z",
          "id": 1470907,
          "handlers": {
              "products": [],
              "vendors": [
                  "apache"
              ]
          }
      },
      {
          "cve": "CVE-2017-12153",
          "created_at": "2017-10-04 14:31:14Z",
          "id": 1471321,
          "handlers": {
              "products": [
                  "linux_kernel"
              ],
              "vendors": []
          }
      },
      {
          "cve": "CVE-2017-9803",
          "created_at": "2017-10-04 18:31:07Z",
          "id": 1471614,
          "handlers": {
              "products": [],
              "vendors": [
                  "apache"
              ]
          }
      }
  ],
  "created_at": "2017-10-05 09:00:01Z",
  "id": "RVEEAHJDHQUS",
  "handlers": [
      "apache",
      "linux_kernel"
  ]
}
Response Headers:
 
Status Codes: