Download entire folder from Version Control via TFS 2015 RestFul Apis

前端 未结 1 2008
小蘑菇
小蘑菇 2021-01-23 22:52

Is there a way to get the download url for an entire folder from TFS 2015 Version Control using the RestFul apis?

I can get metadata about items via the /_apis//tf

1条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-23 23:18

    There isn't any download url for items/folders with currently Version Control API.

    To get an entire folder, you can zip it and download it with the Rest Api with following format:

    [Get] https://xxx/defaultcollection/_apis/tfvc/items?path=&api-version=1.0
    

    And add following in the request header: Accept: application/zip

    0 讨论(0)
提交回复
热议问题