0
votes

Is there a way through the VSTS Rest API (WIQL) to see the actual changes that occurred to files in a commit? I was hoping for something like git's diff from command line but the VSTS documentation for the Diff API only describes showing which files changed, not what was changed:

https://docs.microsoft.com/en-us/rest/api/vsts/git/diffs/get?view=vsts-rest-4.1

Thx

1

1 Answers

0
votes

If you open a commit in VSTS and check the API's calls you can see that: enter image description here

This Rest API give this response (the actually changes on the commit): enter image description here

The problem is... this API not dedicated to showing the changes, to get the changes we need to put some values on the body request, you can find the body in the "Headers" tab under "request Payload": enter image description here

This body is very long (press on "view source" to see the whole body), you can "play" with it and try to get the commit changes.

Here you can find another body, you can also try it.