The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
GET /api/ss/project/:id/testcases HTTP/1.1Host: demo.attackforge.comX-SSAPI-KEY: APIKeyContent-Type: application/jsonConnection: close
id (string)
Identifier for the project.
Example:
GET /api/ss/project/5e64179c899bb708b55ea48c/testcases HTTP/1.1
status (string) (optional)
Testcase status. Must be one of the following: Tested, Not-Tested, In-Progress, Not-Applicable
Example:
GET /api/ss/project/5e64179c899bb708b55ea48c/testcases?status=Tested HTTP/1.1
The following example is a cURL request to get all Tested testcases on a project.
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
curl -X GET 'https://demo.attackforge.com/api/ss/project/5e64179c899bb708b55ea48c/testcases?status=Tested' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close'
Response contains an array of testcase objects.
{"count": 999,"testcases":[{"testcase": "...","status": "...","tags": ["...","..."],"id": "...","created": "...","last_updated": "...","last_updated_by": "...","notes": [{"note": "...", "created": "...", "last_updated": "...", "last_updated_by": "..."}],"uploaded_files": [{"name": "...", "alternative_name": "...", "file_type": "...", "size": 999, "uploaded_on": "..."}]}]}