Description: Gets a single resource version for the supplied numeric id.
Security: Requires a valid user
Usage: GET /v1/resourceVersions/:id
Produces: application/json
Sample Response:
GET api/v1/resourceVersions/14
{
"contentPropertyBag": {
"path": "tla/ymlTest",
"sha": "9ddc1f7655f2cc9ae55cfhdf98werahjsdf493ebc7e",
"shaData": {
"providerDomain": "github.com",
"branchName": "master",
"isPullRequest": false,
"isPullRequestClose": false,
"pullRequestNumber": null,
"pullRequestBaseBranch": null,
"commitSha": "9ddc1f7655f2cc9ae55cfhdf98werahjsdf493ebc7e",
"beforeCommitSha": "57bc23e5ba30a775asd435f0e93d07755e31f3",
"commitUrl": "https://github.com/ChaitanyaVootla/ymlTest/commit/9ddc1f7655f2cc9ae55cfhdf98werahjsdf493ebc7e",
"commitMessage": "Update pipelines.yml",
"baseCommitRef": "",
"headPROrgName": "",
"compareUrl": "https://github.com/ChaitanyaVootla/ymlTest/compare/57bc23e5ba30a775asd435f0e93d07755e31f3...9ddc1f7655f2cc9ae55cfhdf98werahjsdf493ebc7e",
"skipDecryption": false,
"isGitTag": false,
"gitTagName": null,
"gitTagMessage": null,
"isRelease": false,
"releaseName": null,
"releaseBody": null,
"releasedAt": null,
"isPrerelease": false,
"pullRequestRepoFullName": null,
"changeId": null,
"changeSha": null,
"eventType": null,
"patchSetNumber": null,
"changeSubject": null,
"providerSshPort": null,
"changeOwner": {},
"providerUrl": null,
"committer": {
"email": "noreply@github.com",
"login": "web-flow",
"displayName": "GitHub",
"avatarUrl": "https://avatars3.githubusercontent.com/u/19567447?v=4"
},
"lastAuthor": {
"email": "spesdfze@gmail.com",
"login": "ChaitanyaVootla",
"displayName": "Vootla Chaitanya",
"avatarUrl": "https://avatars0.githubusercontent.com/u/8767810?v=4"
},
"triggeredBy": {}
},
"commitSha": "9ddc1f7655f2cc9ae55cf9e5d83b4601493ebc7e",
"isPullRequest": false,
"isPullRequestClose": false,
"pullRequestNumber": null,
"branchName": "master",
"pullRequestBaseBranch": null,
"beforeCommitSha": "57bc23e5ba30a775asd435f0e93d07755e31f3",
"commitUrl": "https://github.com/tla/ymlTest/commit/9ddc1f7655f2cc9ae55cfhdf98werahjsdf493ebc7e",
"commitMessage": "Update pipelines.yml",
"baseCommitRef": "",
"compareUrl": "https://github.com/tla/ymlTest/compare/57bc23e5ba30a775asd435f0e93d07755e31f3...9ddc1f7655f2cc9ae55cfhdf98werahjsdf493ebc7e",
"isGitTag": false,
"gitTagName": null,
"gitTagMessage": null,
"isRelease": false,
"releaseName": null,
"releaseBody": null,
"releasedAt": null,
"isPrerelease": false,
"lastAuthorLogin": "tla",
"lastAuthorEmail": "speedblaze@gmail.com",
"committerLogin": "web-flow"
},
"id": 14,
"projectId": 1,
"pipelineSourceId": 2,
"resourceId": 21,
"createdByStepId": null,
"createdByRunId": null,
"createdAt": "2021-01-11T05:50:04.598Z",
"updatedAt": "2021-01-11T05:50:04.598Z"
}Response Codes:
200: Success
404: No resource version is found for the supplied id.