Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/omega/api-description int…

…o review/omega

* 'master' of https://github.com/omega/api-description:
  Add to Makefile
  Start of organizations API description
  • Loading branch information...
commit 7b2ab45bc803ff71a17b7e2fb1b5719640bf1f09 2 parents 2cfc32a + 51b3f77
@franckcuny franckcuny authored
Showing with 61 additions and 1 deletion.
  1. +3 −1 services/github/Makefile
  2. +58 −0 services/github/organization.json
View
4 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:
View
58 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"
+ }
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.