From faff7314842bc6d63ae3bcc748b81dd66273941b Mon Sep 17 00:00:00 2001 From: Andreas Marienborg Date: Thu, 3 Feb 2011 10:44:41 +0100 Subject: Start of organizations API description --- services/github/organization.json | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 services/github/organization.json (limited to 'services/github') 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" + } +} + -- cgit v1.2.3 From 51b3f77ce6cf4b8eff0fc5218dcfc40431e28db3 Mon Sep 17 00:00:00 2001 From: Andreas Marienborg Date: Thu, 3 Feb 2011 11:00:26 +0100 Subject: Add to Makefile --- services/github/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'services/github') 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: -- cgit v1.2.3