Skip to content

Commit 0216748

Browse files
Merge pull request #17 from augmentable-dev/api-docs
move the docs from the wiki to the codebase/repo
2 parents ca1e0e6 + e7ed991 commit 0216748

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/API.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## API
2+
3+
If you'd like to access tickgit information about public `git` repositories, you can use our API.
4+
5+
### TODOs
6+
7+
`GET` requests to `https://tickgit.augmentable.dev/todos` with the `repo` query param populated with the URL of a git repo, like so:
8+
9+
```
10+
https://tickgit.augmentable.dev/todos?repo=https://github.com/facebook/react
11+
```
12+
Will return a simple JSON response:
13+
14+
```
15+
{"todos":125}
16+
```
17+
18+
Indicating the total count of TODOs found in the `HEAD` of that repository.
19+
20+
To indicate a branch, send a `branch` query param supplying the branch name.
21+
22+
_more coming soon!_
23+
24+
### TODOs Badge
25+
26+
Similarly, `GET` requests to `https://tickgit.augmentable.dev/todos-badge` with the same `repo` query param:
27+
28+
```
29+
http://tickgit.augmentable.dev/todos-badge?repo=https://github.com/facebook/react
30+
```
31+
32+
The `branch` query param will also work as above.
33+
34+
Will return JSON that can be fed into a shields.io badge: [https://shields.io/endpoint](https://shields.io/endpoint)

0 commit comments

Comments
 (0)