diff options
author | franck cuny <franck@lumberjaph.net> | 2011-02-08 17:32:55 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2011-02-08 17:32:55 +0100 |
commit | 7b2ab45bc803ff71a17b7e2fb1b5719640bf1f09 (patch) | |
tree | 3cb32a540dc49c096e8661e6ee1203399d3fcb0d | |
parent | add fql method for facebook API (diff) | |
parent | Add to Makefile (diff) | |
download | api-description-7b2ab45bc803ff71a17b7e2fb1b5719640bf1f09.tar.gz |
Merge branch 'master' of https://github.com/omega/api-description into review/omega
* 'master' of https://github.com/omega/api-description: Add to Makefile Start of organizations API description
-rw-r--r-- | services/github/Makefile | 4 | ||||
-rw-r--r-- | services/github/organization.json | 58 |
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" + } +} + |