-
Notifications
You must be signed in to change notification settings - Fork 145
REST API
Caleb Spare edited this page Apr 30, 2012
·
4 revisions
The Barkeep server has a RESTful HTTP API for retrieving data programmatically (e.g. with the Barkeep client, see below).
HTTP Method | Route | Required parameters | Optional parameters | Result |
POST | /api/add_repo |
url |
none | This route adds a git repo to Barkeep for tracking. |
GET | /api/commits/{repo_name}/{sha} |
none | none | This gives the user information about a single commit. The sha provided must be a full 40 characters. The result is a JSON-formatted map:
{ "approved":[boolean], "approved_by":[user name and email (string)], "approved_at": [unix timestamp (int)], "comment_count":[number of comments (int)], "link":[link for viewing this commit (string)] } |