diff options
| author | franck cuny <franck@lumberjaph.net> | 2011-06-19 10:54:58 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2011-06-19 10:54:58 +0200 |
| commit | 7c8d3fff35b980c40d48736ca0c5b24f8a7ba499 (patch) | |
| tree | 5b043997c98f079facf2581502de68d52a3d6a95 /views | |
| parent | this is buggy (diff) | |
| download | stargit-7c8d3fff35b980c40d48736ca0c5b24f8a7ba499.tar.gz | |
add api
Signed-off-by: franck cuny <franck@lumberjaph.net>
Diffstat (limited to '')
| -rw-r--r-- | views/api.tt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/views/api.tt b/views/api.tt new file mode 100644 index 0000000..1858078 --- /dev/null +++ b/views/api.tt @@ -0,0 +1,28 @@ +<div id="main"> + <div id="static"> + <h1>StarGit's API</h1> + + StarGit provides a simple API to get informations for a user. + + <h2>Methods</h2> + + <h3>/profile/:login</h3> + + <ul> + <li>method: <strong>GET</strong></li> + <li>status: <strong>200</strong> if user exists, <strong>404</strong> when user doesn't exists</li> + <li>format: <strong>JSON</strong></li> + <li>keys: + <ul> + <li>login: user's login in GitHub</li> + <li>country: name of the country (<strong>unknown</strong> if the information wasn't extracted)</li> + <li>website: url of the website (can be <strong>none</strong>; validity of the URL is not guaranted)</li> + <li>language: main language for the profile (can be <strong>unknown</strong>)</li> + <li>gravatar: gravatar's ID</li> + <li>name: name</li> + <li>indegree: indegree</li> + </ul> + </li> + </ul> + </div> +</div> |
