AttackForge Enterprise

GetProjectRequests

This method can be used for the following functionality: Get details for all project requests user has access to. This method can be used with optional filter.

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/requests HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Query

name (string) (optional)

Name of the project requested.

Example:

GET /api/ss/requests?name=Test Project HTTP/1.1

code (string) (optional)

Project code.

Example:

GET /api/ss/requests?code=Project123 HTTP/1.1

status (string) (optional)

Status of the request. Must be one of the following: Approved, Rejected, Pending

Example:

GET /api/ss/requests?status=Testing HTTP/1.1

startDate (string) (optional)

Start date to query requests from. String in YYYY-MM-DD format.

Example:

GET /api/ss/requests?startDate=2020-01-01 HTTP/1.1

endDate (string) (optional)

End date to query requests to. String in YYYY-MM-DD format.

Example:

GET /api/ss/requests?endDate=2020-12-31 HTTP/1.1

Example

The following example is a cURL request to get all project requests with status 'Pending' which have a desired test window between 1st January 2020 to 31st December 2020.

Request

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

curl -X GET 'https://demo.attackforge.com/api/ss/requests?startDate=2020-01-01&endDate=2020-12-31&status=Pending' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close'

Response

Response contains an array of project request objects.

{
"count": 999,
"requests":[
{
"request_id": "...",
"request_created": "...",
"request_last_updated": "...",
"request_name": "...",
"request_code": "...",
"request_status": "...",
"request_groups": ["...", "..."],
"request_scope": ["...", "..."],
"request_test_types_to_be_performed": ["...", "..."],
"request_project_start_date": "...",
"request_project_end_date": "...",
"request_project_testing_hours": "...",
"request_onsite_testing_required": "...",
"request_created_by": "...",
"request_supporting_documents": ["...", "..."]
}
]
}