如何从TFS进行外部API调用 [英] How to make external API calls from TFS

查看:71
本文介绍了如何从TFS进行外部API调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在TFS中创建一个按钮来执行对外部API的调用。我不知道该怎么做或者是否有可能。根据我的理解,我应该能够为TFS(小部件?)做一个扩展,其中包括在JS中进行
API调用的代码。 


我知道Trello已经集成到TFS中,但作为一个例子,我想从我的敏捷板上的故事中创建Trello卡。我知道使用Trello API的正确调用,但是如何扩展TFS以添加该功能?我是
TFS的新手,所以我不确定这是否需要是自定义服务挂钩,订阅或小部件。 


谢谢。

解决方案

Hi Humza,


您使用的是哪个版本的TFS?


由于您不想使用现有的Trello服务,因此您可以创建自定义扩展。有几十个地方可以添加到TFS用户界面,你可以在
中添加一个集线器
供稿参考


有用的链接如下:


https://www.visualstudio.com/en-us/docs/integrate/extensions/overview


https://www.visualstudio。 com / zh-cn / docs / integrate / extensions / get-started / node


https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/tutorials


https://www.visualstudio.com/en-us/文档/集成/扩展/开发/样品,章概述iew


祝你好运,



I am trying to create a button in TFS that will execute a call to my external API. I am not sure how to go about this or if it is possible. From my understanding, I should be able to make an extension for TFS (widget?) that includes the code to make the API calls in JS. 

I know that Trello has already been integrated into TFS, but as an example, I'd like to create Trello cards out of the stories on my Agile board. I know the correct calls to make using Trello's API, but how can I extend TFS to add that functionality? I am new to TFS so I am not sure if this needs to be a custom service hook, subscription, or widget. 

Thanks.

解决方案

Hi Humza,

Which version of TFS are you using?

Since you don't want to use the existing Trello service, you can create a custom extension. There are dozens of places where you can add to the TFS user interface, you can add a hub in the contributions reference.

Useful links as below:

https://www.visualstudio.com/en-us/docs/integrate/extensions/overview

https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/node

https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/tutorials

https://www.visualstudio.com/en-us/docs/integrate/extensions/develop/samples-overview

Best regards,


这篇关于如何从TFS进行外部API调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆