The download of Artifacts for a Project Version can be accessed through this API using the GET service.
Base URL for Artifacts Rest API
http://{host:port}/flexdeploy/rest/v1/project/{projectid}/version/{versionid}/artifact
The Get call returns a zipped file containing all of the artifact information corresponding to a particular project version.
Parameters | Type | Description |
---|---|---|
projectid | URL | The id of the project whose version is being accesses. |
versionid | URL | The id of the project version whose artifacts are to be obtained. |
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.
Base URL for Artifacts Rest API
http://{host:port}/flexdeploy/rest/v1/project/{projectid}/version/{versionid}/artifact
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. |
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