Projects Versions can be accessed through this API using the GET service. @Since 5.0.0.4.
Include Page REST V1 Authentication REST V1 Authentication
Table of Contents | ||
---|---|---|
|
GET
GET by ID
This GET service will find project version for supplied parameters and return a JSON representation of it. Project versions are sorted from newest to oldest.
Info | ||
---|---|---|
| ||
http://{host:port}/flexdeploy/rest/v1/project/{projectId}/version/{versionid} |
Request
Parameter | Required | Type | Description |
---|---|---|---|
projectId | Yes | URL | This is a URL path parameter for the id which is used to find a project. |
versionid | Yes | URL | This is a URL path parameter for project version id. |
Include Page | ||||
---|---|---|---|---|
|
Response Codes
HTTP Code | Description |
---|---|
200 | Project was found and it's versions returned |
400 | Bad request |
401 | Unauthorized |
404 | Project with the specified Id was not found |
500 | Unexpected internal server error |
Example
If we had the following project versions in a Project with a project.
Code Block | ||||
---|---|---|---|---|
| ||||
[ { packageName: "ALM151", isActive: false, projectVersionId: 4281839, projectStreamId: 3882239, projectVersionName: "1.0.45", scmRevision: "1710", requestAllFiles: false }, { packageName: "ALM151", isActive: true, projectVersionId: 4281805, projectStreamId: 3882239, projectVersionName: "1.0.44", scmRevision: "1709", requestAllFiles: false }, { packageName: "ALM151", isActive: true, projectVersionId: 4281769, projectStreamId: 3882239, projectVersionName: "1.0.43", scmRevision: "1709", requestAllFiles: false } ] |
Get by id for 4281839 will return following.
Code Block | ||||
---|---|---|---|---|
| ||||
{ packageName: "ALM151", isActive: false, projectVersionId: 4281839, projectStreamId: 3882239, projectVersionName: "1.0.45", scmRevision: "1710", requestAllFiles: false } |
GET (Using Query Parameters)
This GET service will find project version for supplied parameters and return a JSON representation of it. Project versions are sorted from newest to oldest.
Info | ||
---|---|---|
| ||
http://{host:port}/flexdeploy/rest/v1/project/{projectId}/version? Query Parameters
For example, http://{host:port}/flexdeploy/rest/v1/project/{projectId}/version?projectVersionName=1.0 |
...