summaryrefslogtreecommitdiff
path: root/services/github
diff options
context:
space:
mode:
Diffstat (limited to 'services/github')
-rw-r--r--services/github/Makefile4
-rw-r--r--services/github/organization.json58
2 files changed, 61 insertions, 1 deletions
diff --git a/services/github/Makefile b/services/github/Makefile
index 9b344b7..d84961c 100644
--- a/services/github/Makefile
+++ b/services/github/Makefile
@@ -10,6 +10,7 @@ check: spore_validation.rx
@$(VALIDATOR) repository.json
@$(VALIDATOR) commit.json
@$(VALIDATOR) object.json
+ @$(VALIDATOR) organization.json
test: check
@@ -28,7 +29,8 @@ github.dot: \
network.json \
repository.json \
commit.json \
- object.json
+ object.json \
+ organization.json
$(SPORE2DOT) $^ > $@
clean:
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"
+ }
+}
+