Is there any restriction for number of characters in TFS REST API?

孤街浪徒 提交于 2019-12-24 05:57:42

问题


I am trying to retrieve workitems from TFS using REST API. https://servername/tfs/collectionname/_apis/wit/workitems?ids='xxxx,yyyy,zzzz,....n' (where n count is 420). Each id is a 4 digit number. I could not retrieve more than 409 workitems. If the query exceed more than 409 ids, I receive "404 - File or directory not found" error. Please help me to find solution for this.


回答1:


I can reproduce this issue,it has restriction for the length of the strings when using the REST API.

In this case, we can not get all the work items in one time, we can get the work items separately, just call the API twice.



来源:https://stackoverflow.com/questions/44381745/is-there-any-restriction-for-number-of-characters-in-tfs-rest-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!