DownloadTestSuiteTestCaseFile

This method can be used for the following: Download a Test Suite Test Case file.

Parameters

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.

Headers

GET /api/ss/testsuites/:testsuiteId/testcase/:testcaseId/file/:file HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Query

testsuiteId (string)

Identifier for the test suite.

Example:

GET /api/ss/testsuites/5f63de24fa1c9208d3e140b0/testcase/:testcaseId/file/:file HTTP/1.1

testcaseId (string)

Identifier for the test case.

Example:

GET /api/ss/testsuites/:testsuiteId/testcase/5e8017d2e1385f0c58e8f4f8/file/:file HTTP/1.1

file (string)

Storage name for the file.

Example:

GET /api/ss/testsuites/:testsuiteId/testcase/:testcaseId/file/o23kuixb8c34fm4gbehndpwzuemegvufjzc7jfkh5xlrmlswl4smfyslj65vuupcv5cc21hizhiiysa1bh5ibiwio17vzpzr63n6xtfh9yvzso4ete6qyh55ez5o6in1 HTTP/1.1

Example

The following example is a cURL request to get a file on a test suite test case.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.

curl -X GET 'https://demo.attackforge.com/api/ss/testsuites/673d8c9dd3f73e506b88c6f1/testcase/673d8cb4d3f73e506b88c6f4/file/d7z6ibiqsxjymwfbp957bbmot9h92vracbhq1mrkr29xhvntrd8nultnbjnvvrt8i6pyq5y8txyatwauydhdlhrzacxqyacyupn3jd4tt7lpl1yiartmckds6njoswxv' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close'

Response

Response contains binary data. If using curl, use option --output to save the binary response as a file e.g.

curl <as above> --output image.png

Last updated