Skip to content

Commit

Permalink
#5 Fix the schema of the get job api's response
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani authored Dec 18, 2017
1 parent fcae53f commit 4f32373
Showing 1 changed file with 50 additions and 45 deletions.
95 changes: 50 additions & 45 deletions api/get-job-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,57 +44,62 @@ The `<Artifact>` is an object representing an observable and has two attributes:

```json
{
"id": "vVQu93ps4PwHOtLv",
"analyzerId": "File_Info_1_0",
"status": "Success",
"date": 1490204071457,
"artifact": {
"attributes": {
"dataType": "file",
"tlp": 2,
"content-type": "text/x-python-script",
"filename": "sample.py"
}
},
"report": {
"artifacts": [
{
"type": "sha1",
"value": "cd1c2da4de388a4b5b60601f8b339518fe8fbd31"
},
{
"type": "sha256",
"value": "fd1755c7f1f0f85597cf2a1f13f5cbe0782d9e5597aca410da0d5f26cda26b97"
},
{
"type": "md5",
"value": "3aa598d1f0d50228d48fe3a792071dde"
}
],
"full": {
"Mimetype": "text/x-python",
"Identification": {
"ssdeep": "24:8ca1hbLcd8yutXHbLcTtvbrbLcvtEbLcWmtlbLca66/5:8zHbLcdbOXbLc5jrbLcVEbLcPlbLcax",
"SHA1": "cd1c2da4de388a4b5b60601f8b339518fe8fbd31",
"SHA256": "fd1755c7f1f0f85597cf2a1f13f5cbe0782d9e5597aca410da0d5f26cda26b97",
"MD5": "3aa598d1f0d50228d48fe3a792071dde"
},
"filetype": "python script",
"Magic": "Python script, ASCII text executable",
"Exif": {
"ExifTool:ExifToolVersion": 10.36
}
"id": "vVQu93ps4PwHOtLv",
"analyzerId": "File_Info_1_0",
"status": "Success",
"date": 1490204071457,
"artifact": {
"attributes": {
"dataType": "file",
"tlp": 2,
"content-type": "text/x-python-script",
"filename": "sample.py"
}
},
"success": true,
"summary": {
"filetype": "python script"
"report": {
"artifacts": [{
"attributes": {
"dataType": "sha1"
},
"data": "cd1c2da4de388a4b5b60601f8b339518fe8fbd31"
},
{
"attributes": {
"dataType": "sha256"
},
"data": "fd1755c7f1f0f85597cf2a1f13f5cbe0782d9e5597aca410da0d5f26cda26b97"
},
{
"attributes": {
"dataType": "md5"
},
"data": "3aa598d1f0d50228d48fe3a792071dde"
}
],
"full": {
"Mimetype": "text/x-python",
"Identification": {
"ssdeep": "24:8ca1hbLcd8yutXHbLcTtvbrbLcvtEbLcWmtlbLca66/5:8zHbLcdbOXbLc5jrbLcVEbLcPlbLcax",
"SHA1": "cd1c2da4de388a4b5b60601f8b339518fe8fbd31",
"SHA256": "fd1755c7f1f0f85597cf2a1f13f5cbe0782d9e5597aca410da0d5f26cda26b97",
"MD5": "3aa598d1f0d50228d48fe3a792071dde"
},
"filetype": "python script",
"Magic": "Python script, ASCII text executable",
"Exif": {
"ExifTool:ExifToolVersion": 10.36
}
},
"success": true,
"summary": {
"filetype": "python script"
}
}
}
}
```

**How to use it**

```
curl http://<CORTEX_SERVER>:<CORTEX_PORT>/api/job/<JOB_ID>/report
```
```

0 comments on commit 4f32373

Please sign in to comment.