how to get data in Json form by postman for TFS AP

2019-08-29 08:11发布

问题:

i am currently using TFS API who's link is
https://www.visualstudio.com/en-us/docs/integrate/api/wit/work-items#byids

currently in my project i want to accees the following workitem 61092
http://apactfs.cbre.com:8080/tfs/CBRE.APAC.Applications/MRI_SCRUM_GIT/_workitems?_a=edit&id=61092

and in Postman i am hitting the id by this Link By GET
http://apactfs.cbre.com:8080/tfs/cbre.apac.applications/MRI_SCRUM_GIT/_workitems?_a=edit&id=61092&api-version=1.0

回答1:

Since you only want to get one work item, you should refer to this section of the document:

https://www.visualstudio.com/en-us/docs/integrate/api/wit/work-items#get-a-work-item

And in Postman you should use the following Link By GET

http://apactfs.cbre.com:8080/tfs/cbre.apac.applications/_apis/wit/workitems/61092?api-version=1.0