AttackForge Enterprise & AttackForge Core
Powered By GitBook
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

1
GET /api/ss/requests HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

name (string) (optional)
Name of the project requested.
Example:
1
GET /api/ss/requests?name=Test Project HTTP/1.1
Copied!
code (string) (optional)
Project code.
Example:
1
GET /api/ss/requests?code=Project123 HTTP/1.1
Copied!
status (string) (optional)
Status of the request. Must be one of the following: Approved, Rejected, Pending
Example:
1
GET /api/ss/requests?status=Testing HTTP/1.1
Copied!
startDate (string) (optional)
Start date to query requests from. String in YYYY-MM-DD format.
Example:
1
GET /api/ss/requests?startDate=2020-01-01 HTTP/1.1
Copied!
endDate (string) (optional)
End date to query requests to. String in YYYY-MM-DD format.
Example:
1
GET /api/ss/requests?endDate=2020-12-31 HTTP/1.1
Copied!

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.
1
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'
Copied!

Response

Response contains an array of project request objects.
1
{
2
"count": 999,
3
"requests":[
4
{
5
"request_id": "...",
6
"request_created": "...",
7
"request_last_updated": "...",
8
"request_name": "...",
9
"request_code": "...",
10
"request_status": "...",
11
"request_groups": ["...", "..."],
12
"request_scope": ["...", "..."],
13
"request_test_types_to_be_performed": ["...", "..."],
14
"request_project_start_date": "...",
15
"request_project_end_date": "...",
16
"request_project_testing_hours": "...",
17
"request_onsite_testing_required": "...",
18
"request_created_by": "...",
19
"request_supporting_documents": ["...", "..."],
20
"request_custom_fields": [{"key": "...", "value": "...", "type": "Tag/Field"}]
21
}
22
]
23
}
Copied!
Last modified 12d ago