Project API GET By Id
This GET service will find a Project by Id and return a JSON representation of it.
API URLs
http://host:port/flexdeploy/rest/v1/project/{id}
Request
Parameter | Required | Type | Description |
---|---|---|---|
id | Yes | URL | This is a URL path parameter for the id which is used to find a project. |
Response
Attributes | Type | Description |
---|---|---|
projectName | String | This is the name of the project. |
applicationId | String | This is the type of the project. |
projectPath | String | Fully qualified project path. |
isActive | Boolean | This is a Boolean that tracks whether or not the project is active. Null input defaults to true. |
description | String | This is the group of the project. |
partialDeployment | Boolean | This is the subgroup of the project. Null input defaults to false. |
priority | Integer | This is the description of the project. |
projectType | String | This is the id of the active version of the workflow. Must be a valid project type. |
scmType | String | This specifies the source control management system used by this project. Must be a valid source control management system. |
priorityScope | String | This specifies the priority scope of the current project. Either 'Global', 'Folder' or 'Application' |
buildWorkflowId | Long | This Long specifies the id of the build workflow used by this project. |
buildInstanceId | Long | This id the build instance used by this project. |
utilityWorkflowId | Long | This id specifies the utility workflow used by this project. |
utilityInstanceIds | List<Long> | This id specifies the utility instance used by this project. |
deployWorkflowId | Long | This id specifies the deployment workflow used by this project. |
deployInstanceIds | List<Long> | This is a list of id's which identify the deployment instances for this project. |
streams | List<Long> | This is a list of id's which identify the Project Streams associated with this project. |
Response Codes
HTTP Code | Description |
---|---|
200 | Projects were found and returned |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
500 | Unexpected internal server error |
Example
If we had a Project in our database with the name 'Project1' with the following attributes:
Project - "Project1"
{ Â Â "priority": 1, Â Â "projectName": "Project1", Â Â "description": "Our thoughts become our words. Our words become our actions.", Â Â "applicationId": 10001, Â Â "priorityScope": "Application", Â Â "partialDeployment": false, Â Â "isActive": true, Â Â "scmType": "NONE", Â Â "streams": [ Â Â Â 10802, Â Â Â 10803, Â Â Â 10804, Â Â Â 10805 Â Â ], Â Â "deployWorkflowId": 10873, Â Â "deployInstanceIds": [ Â Â Â 11153, Â Â Â 11168, Â Â Â 11183, Â Â Â 11198, Â Â Â 11213, Â Â Â 11228, Â Â Â 11243 Â Â ], Â Â "buildWorkflowId": 10869, Â Â "buildInstanceId": 11153, Â Â "projectType": null }
When we run a GET request at the following URL:
http://host:port/flexdeploy/rest/v1/project/10002
The GET request would return the following JSON project object
GET JSON Response
{ Â Â "priority": 1, Â Â "projectName": "Project1", Â Â "description": "Our thoughts become our words. Our words become our actions.", Â Â "applicationId": 10001, Â Â "priorityScope": "Application", Â Â "partialDeployment": false, Â Â "isActive": true, Â Â "scmType": "NONE", Â Â "streams": [ Â Â Â 10802, Â Â Â 10803, Â Â Â 10804, Â Â Â 10805 Â Â ], "utilityWorkflowId": 11434, "utilityInstanceIds": [11275], Â Â "deployWorkflowId": 10873, Â Â "deployInstanceIds": [ Â Â Â 11153, Â Â Â 11168, Â Â Â 11183, Â Â Â 11198, Â Â Â 11213, Â Â Â 11228, Â Â Â 11243 Â Â ], Â Â "buildWorkflowId": 10869, Â Â "buildInstanceId": 11153, Â Â "projectType": null }
The following macros are not currently supported in the footer:
- style