about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-13 13:37:54 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-13 13:37:54 +0200
commit5941c4a9cb8344028ceca1b19812e1a007d9366c (patch)
tree4da53dcd7840aebfadb95aba8582aa015c0994a0
parentrename (diff)
downloadapi-description-5941c4a9cb8344028ceca1b19812e1a007d9366c.tar.gz
update github and twitter
-rw-r--r--services/github.json22
-rw-r--r--services/twitter.json17
2 files changed, 21 insertions, 18 deletions
diff --git a/services/github.json b/services/github.json
index 44a295e..2e9b4eb 100644
--- a/services/github.json
+++ b/services/github.json
@@ -1,15 +1,8 @@
 {
-   "declare" : {
-      "api_base_url" : "http://github.com/api/v2/",
-      "api_format_mode" : "content-type",
-      "api_format" : "json"
-   },
+   "api_base_url" : "http://github.com/api/v2/",
+   "version" : "0.1",
    "methods" : {
       "user_information" : {
-         "params" : [
-            "username",
-            "format"
-         ],
          "required" : [
             "username",
             "format"
@@ -18,10 +11,6 @@
          "method" : "GET"
       },
       "user_following" : {
-         "params" : [
-            "user",
-            "format"
-         ],
          "required" : [
             "user",
             "format"
@@ -29,5 +18,12 @@
          "path" : "/:format/user/show/:user/followers",
          "method" : "GET"
       }
+   },
+   "name" : "GitHub",
+   "author" : [
+      "franck cuny <franck@lumberjaph.net>"
+   ],
+   "meta" : {
+      "documentation" : "http://develop.github.com/"
    }
 }
diff --git a/services/twitter.json b/services/twitter.json
index f07470e..4396072 100644
--- a/services/twitter.json
+++ b/services/twitter.json
@@ -1,9 +1,6 @@
 {
-   "declare" : {
-      "api_base_url" : "http://api.twitter.com/1",
-      "api_format_mode" : "append",
-      "api_format" : "json"
-   },
+   "api_base_url" : "http://api.twitter.com/1",
+   "version" : "0.1",
    "methods" : {
       "public_timeline" : {
          "params" : [
@@ -23,5 +20,15 @@
          "path" : "/statuses/home_timeline",
          "method" : "GET"
       }
+   },
+   "api_format" : [
+      "json"
+   ],
+   "name" : "Twitter",
+   "author" : [
+      "franck cuny <franck@lumberjaph.net>"
+   ],
+   "meta" : {
+      "documentation" : "http://dev.twitter.com/"
    }
 }