从显示未找到页面的 tfs REST API 获取配置文件信息
问题描述:
我肯定之前可能已经问过这个问题.我搜索过任何没有得到任何信息的东西,这就是我想在这里发帖的原因.任何帮助表示赞赏
Am sure this might have been asked before.I have searched like anything not getting any information thats why i thought of posting here. any help is appreciated
https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0
这个 REST API 总是给 Page not found tfs2015 server using.
this REST API always giving Page not found tfs2015 server using.
答
你提到的 REST API 是针对 VSTS 的:
The REST API you mentioned is for VSTS :
https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0
对于本地 TFS(在您的情况下为 TFS 2015),您可以使用以下 REST API 来获取配置文件信息(首先连接到 TFS):
For on-premise TFS (TFS 2015 in your case), you can use below REST API to get the profile information (connect to TFS first):
http://server:8080/tfs/_api/_common/GetUserProfile?__v=5