Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Adds 2.5.1 changes
/rest/applications/{appId}
Descriptor | Value |
---|---|
HTTP Method | GET |
Description | Retrieves an application using the given appId. |
Required Permission | Read Access (Any Role) |
Version Introduced | 2.3.0 |
Changes in 2.4.0 | Added new “tags” and “versions” sections to response. |
Changes in 2.5.0.2 | Added new "filterSet" field to response. |
Changes in 2.5.1 | Added the "updatedDate" field to the response. This field is present when using older REST versions as well. |
Request Header Parameters
Parameter | Value | Required | Description |
---|---|---|---|
Accept | String | Yes | A value of ‘application/json’ must be provided. |
Sample Call:
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" http://localhost:8080/threadfix/rest/v2.5.0.2/applications/1?apiKey={apiKey} |
Sample Output:
Code Block | ||
---|---|---|
| ||
{
"message": "",
"success": true,
"responseCode": -1,
"object": {
"id": 54,
"name": "Test App",
"url": "http://example.com",
"uniqueId": null,
"applicationCriticality": {
"id": 1,
"name": "Low"
},
"grcApplication": null,
"scans": [
{
"id": 383,
"importTime": 1309962639000,
"updatedDate": 1309962639000,
"numberClosedVulnerabilities": 0,
"numberNewVulnerabilities": 2,
"numberOldVulnerabilities": 0,
"numberResurfacedVulnerabilities": 0,
"numberTotalVulnerabilities": 2,
"numberRepeatResults": 0,
"numberRepeatFindings": 0,
"numberInfoVulnerabilities": 0,
"numberLowVulnerabilities": 0,
"numberMediumVulnerabilities": 1,
"numberHighVulnerabilities": 1,
"numberCriticalVulnerabilities": 0,
"scannerName": "w3af"
}
],
"infoVulnCount": 0,
"lowVulnCount": 0,
"mediumVulnCount": 1,
"highVulnCount": 1,
"criticalVulnCount": 0,
"totalVulnCount": 2,
"tags": [
{
"id": 11,
"name": "First Tag",
"type": "APPLICATION"
},
{
"id": 12,
"name": "Second Tag",
"type": "APPLICATION"
}
],
"versions": [
{
"id": 14,
"name": "Version 1",
"date": 1293861600000
},
{
"id": 15,
"name": "Version 2",
"date": 1357020000000
}
],
"filterSet": "Developer View",
"waf": null,
"organization": {
"name": "Test Team",
"id": 22
}
}
} |
Page Tree | ||
---|---|---|
|