Visual Studio Team Services API - tfs

Does anyone know if there is a Visual Studio Team Services (http://visualstudio.com/) API? Please note I am referencing the "Service" and not the "Server".
I've been looking but I have been unable to find one.

See: Team Foundation Server OData API
Have a read, then follow the instructions from "Team Foundation Service authentication:" to set up your account/profile to access the Api.
You can then access the resources via the web Api.
There are also some sample applications near the top of that page that make use of this Api/OData.

As Edward and Christopher pointed out, the Client Object Model for the Cloud version of TFS and the on-premise version are identical, but not all API's will work with both systems. You can download the Client Object Model installer from the following location:
2012
2010 SP1 and Forward Compatibility GDR
Which API's work on which system is constantly changing, since new features are added to the cloud version all the time, while certain features are currently only available on the on-premise version (sharepoint integration and reporting for example).
Apart from that there is an OData API for TFS 2010 on-premise and that API is expected to be released for TFSvc and TFS on-premise in the near future. Probably coming to the TFSvc first.

Microsoft does provide REST ful as well as Client Object Model (DLL) based APIs which works both for on-premise Team Foundation Server and Visual Studio Team Services. But, REST ful API is still not complete, for example, there is still no end-point for getting drop-down field values. It is therefore recommended to use COM DLL APIs.

Visual Studio Team Services and Team Foundation Server now also has REST APIs, service hooks, and an extensions framework:
https://www.visualstudio.com/docs/integrate/overview

Related

How to connect to Visual Studio Team Services (previously Visual Studio Online) TFS?

Good day.
I want to write an app for the work with builds and bugs in Team Services, previously Visual Studio Online (VSO). I've found the REST API, and it works, but it's not too comfortable to work with JSON. Is there any SDK for Team Services, or is that possible to connect to Team Services using standard TFS libraries from Microsoft?
Yes, you can use the .NET client libraries for Visual Studio Team Services (and TFS) to connect to VSTS just like how you connect to on-premise TFS. But if you are working with vNext build, I would recommend you to use the "Microsoft.TeamFoundationServer.Client" in the webpage which still use Rest API to connect to TFS since the client libraries API only support some basic operation with vNext build.

get data from TFS in custom web application

I need to extract some data from TFS (Team Foundation Server) and create some excel sheet with data. To automate it, I am writing an application . But problem is:
How can I get data from TFS? Is there any webservice available for this or I need to parse HTML and then get the data.
No. TFS has broad coverage APIs and came in two flavors: Object Model and REST.
The Object Model is automatically installed when you install Visual Studio / Team Explorer, otherwise you can use the stand-alone MSI. This is a .NET API, but you can also find the Java version in case you need it.
The OM is simple to use for a .Net developer.
The REST API are kind of new and you should study if they satisfy your requirement. Some APIs are supported only on VSO and they miss from TFS on-premise and older versions.

Visual Studio Team Services Reporting

As I understand it there is currently no reporting available on Visual Studio Team Services however looking at the source control history it shows the changeset history. Can additional columns be added here like number of changes, etc. so we can try and use this to understand the history of changes for our source control?
An even better solution would be to get real reporting from visual studio Team Services.
You're right, there are is not a comparable reporting set of capabilities in Visual Studio Team Services that Team Foundation Server on-premises currently has. The data all exists though in the Visual Studio Team Services account and there many ways of getting to that data:
Work Item Queries
Work Item Charts
REST APIs in Visual Studio Online
Team Foundation Server SDK (making calls against Visual Studio Team Services)
I imagine for your particular scenario, you'll want to use either option #3 or option #4 for querying version control information.
Update: We are currently working on an Analytics Service for Visual Studio Team Services data that will work with multiple reporting platforms like PowerBI and many others.

Generating Service Proxy for Team Foundation Service from Visual Studio

I'm trying to do some custom integration with Visual Studio Team Foundation Service. Please note, this is NOT the on-premises version. I've figured out how to query the service via OData. I also found this sample. For the life of me though, I can't figure out how they created the service proxy to TFS. This proxy contains the helper classes which makes development easier.
How do I add a service proxy to Visual Studio Team Foundation Service? Typically, I would just use a URL. However, I can't seem to figure out which URL to use. Thank you
Have you checked out the tfs odata api documentation.
Also, here is a link to sample code that creates a web proxy for a TFS work item browser.
Hope this helps.
A Windows Store (WinRT) TFS Work Item Browser
Team Foundation Server OData API

TFS express with google drive

Can I combine tfs express server with google drive for windows to get my free repository in the cloud?
Anyone knows other alternative with this two things? It has to be free.
TFS Express uses SQL Express as repository. Don't see how you can use it with google drive, but you can try Team Foundation Service. It's free for now, because it's still in preview.
What will happen after preview I really don't. I just hope they will have some free package.
No, you can't use TFS Express with a cloud storage option to suddenly get a cloud version of TFS. But, in the past few years Microsoft hasn't sat still, so now you can get a cloud-hosted version of TFS by creating a Visual Studio Team Services account.
This service is also free for up to 5 users, plus you'll get a lot of things that didn't come with TFS Express.

Resources