使用Stash Rest API获取原始文件内容

问题描述 投票:10回答:1

我可以使用Bitbucket REST API获取原始文件内容

https://api.bitbucket.org/1.0/repositories/AccountName/Repo_Slug/raw/master/MyFolder/MyFile.cs

是否有相当于使用Stash Rest API从Stash获取它。我在这里找不到:https://developer.atlassian.com/static/rest/stash/2.0.1/stash-rest.html#resources

bitbucket-server bitbucket-api
1个回答
13
投票

只需指定文件的URL并附加?raw即可

http://example.com/projects/TES/repos/testrepo/browse/testfile?raw

正如我所提到的,这不是REST API的功能,它只是文件的完整URL。

© www.soinside.com 2019 - 2024. All rights reserved.