Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Team Foundation Server 2015 Cookbook

You're reading from   Microsoft Team Foundation Server 2015 Cookbook Over 80 hands-on DevOps and ALM-focused recipes for Scrum Teams to enable the Continuous Delivery of high-quality Software... Faster!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781784391058
Length 340 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Tarun Arora Tarun Arora
Author Profile Icon Tarun Arora
Tarun Arora
Tarun Arora Tarun Arora
Author Profile Icon Tarun Arora
Tarun Arora
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Team Project Setup FREE CHAPTER 2. Setting Up and Managing Code Repositories 3. Planning and Tracking Work 4. Building Your Application 5. Testing Your Application 6. Releasing Your Application 7. Managing Team Foundation Server 8. Extending and Customizing Team Foundation Server Index

Getting a list of Git repositories programmatically using the REST API


In this recipe, you'll learn how to get a list of Git repositories in a Team Project programmatically using the GitHttpClient REST API.

Getting ready

Refer to instructions in the Getting ready section of the Getting build details programmatically using the REST API recipe for setup details. Download the RESTDemo solution provided with the course material. In this recipe, we'll be going through the GetGitRepos project to get a list of Git repositories with details from a Team Project.

How to do it…

  1. In the RESTDemo solution, set GetGitRepos as the startup project:

  2. Run the GetGitRepos project, this will launch a console. Enter the TFS Server URL and press Enter:

  3. Enter the username and password of the user you want to connect to the TFS with and press Enter:

  4. Enter the project name you would like to retrieve the build details from:

  5. The console outputs the list of Git repositories in FabrikamGit project along with the details of the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime