Skip to content

A REST service for build and code stats. Integrates with Visual Studio Online / VSTS, written in TypeScript for Node.js

Notifications You must be signed in to change notification settings

arnts/ripples-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple service for build and code statistics from VSTS

Provides a super simple REST API for build and code stats by integrating with Visual Studio Team Services (VSTS) using vsts-node-api. Written in TypeScript for Node.js.

Want to run this service?

Run npm install first

Set environment variables using set or export:

API_URL=https://fabrikam.visualstudio.com/defaultcollection  

// use your token
API_TOKEN=cbdeb34vzyuk5l4gxc4qfczn3lko3avfkfqyb47etahq6axpcqha  

API_PROJECT=myProject  

Build:

$ npm run build

Test:

$ npm run test

Start server in dev mode:

$ npm run dev

Verify the service, for example using httpie:

$ http localhost:3000/api/v1/ping

Get all git repositories with id, name and description:

$ http localhost:3000/api/v1/repos

Get all git commits for a give repo:

$ http localhost:3000/api/v1/commits repo=="MY_REPO_ID"

Get top N latest builds:

$ http localhost:3000/api/v1/builds top==50

Or use the browser to test:

http://localhost:3000/api/v1/builds?top=50

About

A REST service for build and code stats. Integrates with Visual Studio Online / VSTS, written in TypeScript for Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published