GET/projects

Applies to QAComplete 14.3, last modified on February 19, 2024

Returns a list of available projects.

Use the operation to get a list of projects available to the specified user in QAComplete.

In QAComplete, you can view and manage projects in  > Setup > Projects (Open & Create).

To get information on an individual project, use the /projects/{ProjectId} (GET) operation.

Authentication

Basic authentication using a user’s login and password. See Authentication for details.

Security Rights

The authenticating user must have access to QAComplete projects.

Request Format

To get information on projects, send a GET request to the following URL:

http://{server}/rest-api/service/api/v1/projects?offset={offset}&limit={limit}

offset  :  integer, default: 0

The number of projects to skip before counting the returned projects. The default value is 0, which is the offset of the first item. For details, see Paging Through Results Using Offset and Limit.

limit  :  integer, default: 25

The maximum number of projects to return in the response.

A sample request:

GET http://yourserver.com/rest-api/service/api/v1/projects HTTP/1.1
Host: yourserver.com
Connection: keep-alive
Accept: application/json
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==

A sample request made by using cURL:

curl -u [email protected]:p@ssword -H "Accept: application/json" http://yourserver.com/service/api/v1/projects

Response Format

On success, the operation responds with HTTP status code 200 and returns a JSON object with project information.

If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.

A sample response:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1197



{
  "metadata": {
    "result_set": {
      "count": 1,
        "offset": 0,
      "limit": 25,
      "total": 1
    },
    "permissions": {
      "acl": 1
    }
  },
  "results": [
    {
      "id": "11873",
      "proj_name": "Orders",
      "dept_id": "8162",
      "dept_name": "Edgar Solutions",
      "__permissions": {
        "acl": 1
      },
      "actual_cost": 0,
      "actual_hrs": 0,
      "date_begin_actual": "00001-01-01T00:00:00.0000000",
      "date_begin_scheduled": "2015-06-29T00:00:00.0000000",
      "date_created": "2014-06-29T11:23:52.3970000",
      "date_end_actual": "00001-01-01T00:00:00.0000000",
      "date_end_scheduled": "2015-06-29T00:00:00.0000000",
      "date_updated": "2014-06-29T11:23:52.3970000",
      "est_cost": 0,
      "est_hrs": 0,
      "is_active": true,
      "is_auto_calc": false,
      "nbr_events": 0,
      "nbr_files": 0,
      "nbr_notes": 0,
      "update_user_id": 24661,
      "user_name": "Smith, John"
    }
  ]
}

Highlight search results