Last active
February 17, 2019 19:11
-
-
Save TomasBouda/dd967bf35a462d1a9af8d59dfcddb272 to your computer and use it in GitHub Desktop.
Azure Devops API Requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "bad5bcb8-d07d-498a-92c7-6f85c7429d4d", | |
"name": "Azure Devops", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "AddComment", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Basic ENTER_TOKEN_HERE", | |
"type": "text" | |
}, | |
{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\r\n \"comments\": [\r\n {\r\n \"parentCommentId\": 0,\r\n \"content\": \"asdasdsa1231321d\"\r\n }\r\n ],\r\n \"status\": 1,\r\n \"threadContext\": null,\r\n \"pullRequestThreadContext\": null\r\n}" | |
}, | |
"url": { | |
"raw": "https://yourOrganization.visualstudio.com/d09fbd98-6180-4127-971c-9144b1f8588b/_apis/git/repositories/073c3c05-f5c6-4513-8892-f52070dcbd0c/pullRequests/10645/threads?api-version=5.0", | |
"protocol": "https", | |
"host": [ | |
"yourOrganization", | |
"visualstudio", | |
"com" | |
], | |
"path": [ | |
"d09fbd98-6180-4127-971c-9144b1f8588b", | |
"_apis", | |
"git", | |
"repositories", | |
"073c3c05-f5c6-4513-8892-f52070dcbd0c", | |
"pullRequests", | |
"10645", | |
"threads" | |
], | |
"query": [ | |
{ | |
"key": "api-version", | |
"value": "5.0" | |
} | |
] | |
}, | |
"description": "Adds comment to Pull Request" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Repositories", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Basic ENTER_TOKEN_HERE", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"url": { | |
"raw": "https://dev.azure.com/yourOrganization/YourProject/_apis/git/repositories?api-version=5.0", | |
"protocol": "https", | |
"host": [ | |
"dev", | |
"azure", | |
"com" | |
], | |
"path": [ | |
"yourOrganization", | |
"YourProject", | |
"_apis", | |
"git", | |
"repositories" | |
], | |
"query": [ | |
{ | |
"key": "api-version", | |
"value": "5.0" | |
} | |
] | |
}, | |
"description": "Gets all repositories" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "PullRequestUpdate", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "PATCH", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Basic ENTER_TOKEN_HERE", | |
"type": "text" | |
}, | |
{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\r\n \"autoCompleteSetBy\": {\r\n \"id\": \"00000000-0000-0000-0000-000000000000\"\r\n }\r\n}" | |
}, | |
"url": { | |
"raw": "https://yourOrganization.visualstudio.com/d09fbd98-6180-4127-971c-9144b1f8588b/_apis/git/repositories/073c3c05-f5c6-4513-8892-f52070dcbd0c/pullRequests/10645?api-version=5.0", | |
"protocol": "https", | |
"host": [ | |
"yourOrganization", | |
"visualstudio", | |
"com" | |
], | |
"path": [ | |
"d09fbd98-6180-4127-971c-9144b1f8588b", | |
"_apis", | |
"git", | |
"repositories", | |
"073c3c05-f5c6-4513-8892-f52070dcbd0c", | |
"pullRequests", | |
"10645" | |
], | |
"query": [ | |
{ | |
"key": "api-version", | |
"value": "5.0" | |
} | |
] | |
}, | |
"description": "Updates Pull Request" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "GetFileContents", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Basic ENTER_TOKEN_HERE", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"url": { | |
"raw": "https://dev.azure.com/yourOrganization/YourProject/_apis/sourceProviders/TfsGit/filecontents?repository=ef3ed340-f0c2-4c30-9ff4-3e114f0eb26b&path=Scripts\\CI_PostBuild.ps1&api-version=5.0-preview.1&commitOrBranch=master", | |
"protocol": "https", | |
"host": [ | |
"dev", | |
"azure", | |
"com" | |
], | |
"path": [ | |
"yourOrganization", | |
"YourProject", | |
"_apis", | |
"sourceProviders", | |
"TfsGit", | |
"filecontents" | |
], | |
"query": [ | |
{ | |
"key": "repository", | |
"value": "ef3ed340-f0c2-4c30-9ff4-3e114f0eb26b" | |
}, | |
{ | |
"key": "path", | |
"value": "Scripts\\CI_PostBuild.ps1" | |
}, | |
{ | |
"key": "api-version", | |
"value": "5.0-preview.1" | |
}, | |
{ | |
"key": "commitOrBranch", | |
"value": "master" | |
} | |
] | |
}, | |
"description": "Gets file content" | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment