The download of Artifacts for a Project Version can be accessed through this API using the GET service.
Include Page REST V1 Authentication REST V1 Authentication
Table of Contents | ||
---|---|---|
|
GET
This GET service will find the artifacts associated with a specific project version and return a Response object with a zipped file, in the form of a byte array(byte[]), containing the artifacts.
Info | ||
---|---|---|
| ||
http://{host:port}/flexdeploy/rest/v1/project/{projectid}/version/{versionid}/artifact |
Request
Parameters | Required | Type | Description |
---|---|---|---|
projectid | Yes | URL | The id of the project whose version is being accesses. |
versionid | Yes | URL | The id of the project version whose artifacts are to be obtained. |
Response
Zip file containing artifacts.
Response Codes
HTTP Code | Description |
---|---|
200 | Project was found and it's versions returned |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Project or Version not found |
500 | Unexpected internal server error |
Example
When we run a GET request at the following URL:
http://{hostname:port}/flexdeploy/rest/v1/project/12701/version/12906/artifact
The GET request would download a zipped file containing the information in the artifact section of the specified project version.
The name of the zipped file returned is in the format {projectid}-{versionid}-artifacts.zip. Ex: 12701-12906-artifacts.zip
...