TFS VSO REST API 工作项(机智)路径给出 404 错误
TFS VSO REST API workitems (wit) paths give 404 errors
我最近发现 TFS 有一个 RESTFul API,我正在尝试根据此处的文档提取有关工作项的信息:Work Items
我已经能够使用此路径获取有关项目的信息:
[主机]/tfs/TFS_DefaultCollection/_apis/projects
但是当我尝试
[主机]/tfs/TFS_DefaultCollection/_apis/wit/workitems
或
[主机]/tfs/TFS_DefaultCollection/_apis/wit/workitems?版本=1.0-预览版
我收到 404 错误。我已经根据各种示例尝试了很多东西,但是对于 /wit/ 路径下的任何 URI,我还没有得到任何回复。
此 question has an answer that suggests that this feature may not yet be supported in on-premises installations. Has anyone gotten this to work? There's a blurb about how you can get a 404 if you don't have premissions on the main REST Basics page 用于 TFS。是否需要一些授权设置,或者我只需要等待更高版本?我们是 运行 2013(版本 12.0.31101.0)
您收到 404,因为这些特定的 API 不在本地 TFS 2013 产品中。它们的 API 从 TFS 2015 CTP1 开始可用。
我最近发现 TFS 有一个 RESTFul API,我正在尝试根据此处的文档提取有关工作项的信息:Work Items
我已经能够使用此路径获取有关项目的信息:
[主机]/tfs/TFS_DefaultCollection/_apis/projects
但是当我尝试
[主机]/tfs/TFS_DefaultCollection/_apis/wit/workitems
或
[主机]/tfs/TFS_DefaultCollection/_apis/wit/workitems?版本=1.0-预览版
我收到 404 错误。我已经根据各种示例尝试了很多东西,但是对于 /wit/ 路径下的任何 URI,我还没有得到任何回复。
此 question has an answer that suggests that this feature may not yet be supported in on-premises installations. Has anyone gotten this to work? There's a blurb about how you can get a 404 if you don't have premissions on the main REST Basics page 用于 TFS。是否需要一些授权设置,或者我只需要等待更高版本?我们是 运行 2013(版本 12.0.31101.0)
您收到 404,因为这些特定的 API 不在本地 TFS 2013 产品中。它们的 API 从 TFS 2015 CTP1 开始可用。