about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Marienborg <andreas.marienborg@gmail.com>2011-02-03 10:44:41 +0100
committerAndreas Marienborg <andreas.marienborg@gmail.com>2011-02-03 10:44:41 +0100
commitfaff7314842bc6d63ae3bcc748b81dd66273941b (patch)
tree3fce28c4e204e8485e7b49adff41a7b370263ac0
parents/PUT/POST/ (diff)
downloadapi-description-faff7314842bc6d63ae3bcc748b81dd66273941b.tar.gz
Start of organizations API description
-rw-r--r--services/github/organization.json58
1 files changed, 58 insertions, 0 deletions
diff --git a/services/github/organization.json b/services/github/organization.json
new file mode 100644
index 0000000..3907ed0
--- /dev/null
+++ b/services/github/organization.json
@@ -0,0 +1,58 @@
+{
+   "base_url" : "http://github.com/api/v2/",
+   "version" : "0.1",
+   "methods" : {
+      "get_organization" : {
+         "path" : "/:format/organizations/:org",
+         "method" : "GET",
+         "required_params" : [
+            "format",
+            "org"
+         ]
+      },
+      "get_organization_teams" : {
+        "path" : "/:format/organizations/:org/teams",
+        "method" : "GET",
+        "required_params" : [
+            "format",
+            "org"
+        ],
+        "authentication" : true
+      },
+      "get_organization_repositories" : {
+        "path" : "/:format/organizations/:org/repositories",
+        "method" : "GET",
+        "required_params" : [
+            "format",
+            "org"
+        ],
+        "authentication" : true
+      },
+      "get_team_members" : {
+        "path" : "/:format/teams/:team/members",
+        "method" : "GET",
+        "requires_params" : [
+            "format",
+            "team"
+        ],
+        "authentication" : true
+      },
+      "get_team_repositories" : {
+        "path" : "/:format/teams/:team/repositories",
+        "method" : "GET",
+        "required_params" : [
+            "format",
+            "team"
+        ],
+        "authentication" : true
+      }
+   },
+   "expected_status" : [ 200 ],
+   "name" : "GitHub",
+   "authority" : "http://github.com/SPORE",
+   "meta" : {
+      "documentation" : "http://develop.github.com/",
+      "module" : "organization"
+   }
+}
+