From 7c8d3fff35b980c40d48736ca0c5b24f8a7ba499 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 19 Jun 2011 10:54:58 +0200 Subject: add api Signed-off-by: franck cuny --- views/api.tt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 views/api.tt 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 @@ +
+
+

StarGit's API

+ + StarGit provides a simple API to get informations for a user. + +

Methods

+ +

/profile/:login

+ +
    +
  • method: GET
  • +
  • status: 200 if user exists, 404 when user doesn't exists
  • +
  • format: JSON
  • +
  • keys: +
      +
    • login: user's login in GitHub
    • +
    • country: name of the country (unknown if the information wasn't extracted)
    • +
    • website: url of the website (can be none; validity of the URL is not guaranted)
    • +
    • language: main language for the profile (can be unknown)
    • +
    • gravatar: gravatar's ID
    • +
    • name: name
    • +
    • indegree: indegree
    • +
    +
  • +
+
+
-- cgit v1.2.3