Things we need to get from the API
(Install jq
for these examples http://stedolan.github.io/jq/)
Single commits
curl 'http://0.0.0.0:5000/repos/restfulgit/commits/8990ae2cd9bfa2d94f4fd37ae8026c71bfe7d8ef/' | jq '.'
Range of commits
curl http://0.0.0.0:5000/repos/restfulgit/git/commits/ | jq '.'
Branches
curl 'http://0.0.0.0:5000/repos/restfulgit/branches/' | jq '.'
Remotes
??
Miscellaneous, but handy
List of all repos
curl http://0.0.0.0:5000/repos/ | jq '.'