Digital.ai Continuous Testing allows testers to upload files to the cloud that can later be used by different features from relative URL and download files that were created by cloud commands so that they can work with files not hosted locally.
The role of the user performing the Rest Operation is specified by the 'Authorization' header.
Supports Authorization with Access Key only OR Admin authorization.
For more information please visit How To Execute Rest API, for a detailed example.
Get File Information
Get the information about the specified file.
GET /api/v1/files/{fileId} |
---|
Response
Response Status: 200 OK { "status": "SUCCESS", "data": { "id": 516, "uniqueName": "f3", "description": null, "extension": "png", "size": 2649, "uploadedBySystem": false, "uploadTime": "2021-05-02T12:16:01.943Z", "lastUpdate": "2021-05-02T12:16:01.943Z", "uploadedUser": "admin", "lastUpdatedUser": "admin", "projectName": "Default" }, "code": "OK" }
Get File Information
Get a collection about multiple files information.
GET /api/v1/files |
---|
Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
project_id | String | No | Available for cloud admin only, if the project and unique_name are not specified, it will return the information about all the projects files. |
project_name | String | No | Available for cloud admin only if project id not specified. |
unique_name | String | No | If empty- return all the information about all the files in the project(all the projects if admin and project aren't specified). Else, return information only about the specified file. |