Reputation: 493
I'm trying to find all the files modified in a branch after a specific date from the VSTS rest API. I need to create a report based on this.
I found the endpoint that returns all the files in the branch, but how do I find the file modification date time or only the files modified after a specific date?
The endpoint to get all files from a branch is given below
GET https://xxxxx.visualstudio.com/{projectname}/_apis/git/repositories/8b07c923-7876-47fb-b234-4587564/items?recursionLevel=full&includeContentMetadata=true&latestProcessedChange=false&download=false&includeLinks=true&versionDescriptor.versionType=branch&versionDescriptor.version=Releasexxxx&api-version=4.1
Upvotes: 1
Views: 2162
Reputation: 29976
Get all the commits in a brach after a specific date via Get Commits first and then get all the changed files in the commits via Get Changes.
Upvotes: 3