diff options
Diffstat (limited to 'services/github/repository.json')
| -rw-r--r-- | services/github/repository.json | 235 |
1 files changed, 214 insertions, 21 deletions
diff --git a/services/github/repository.json b/services/github/repository.json index f86709e..b5b20e3 100644 --- a/services/github/repository.json +++ b/services/github/repository.json @@ -2,79 +2,272 @@ "base_url" : "http://github.com/api/v2/", "version" : "0.2", "methods" : { - "unwatch_repo" : { + "repos_search" : { + "path" : "/:format/repos/search/:q", + "method" : "GET", + "required_params" : [ + "format", + "q" + ], + "optional_params" : [ + "start_page", + "language" + ] + }, + "repos_info" : { + "path" : "/:format/repos/:user/:repo", + "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ] + }, + "set_repo_info" : { + "path" : "/:format/repos/show/:user/:repo", + "method" : "POST", + "form-data" : { + "values[description]" : ":description", + "values[homepage]" : ":homepage", + "values[has_wiki]" : ":has_wiki", + "values[has_issues]" : ":has_issues", + "values[has_download]" : ":has_download" + }, "required_params" : [ "format", "user", "repo" ], - "path" : "/:format/repos/unwatch/:user/:repo", - "method" : "GET", + "optional_params" : [ + "description", + "homepage", + "has_wiki", + "has_issues", + "has_download" + ], "authentication" : true }, - "repos_info" : { + "list_all_repos" : { + "path" : "/:format/repos/show/:user", + "method" : "GET", + "required_params" : [ + "format", + "user" + ] + }, + "watch_repo" : { + "path" : "/:format/repos/watch/:user/:repo", + "method" : "GET", "required_params" : [ "format", "user", "repo" ], - "path" : "/:format/repos/:user/:repo", - "method" : "GET" + "authentication" : true }, - "fork_repos" : { + "unwatch_repo" : { + "path" : "/:format/repos/unwatch/:user/:repo", + "method" : "GET", "required_params" : [ "format", "user", "repo" ], + "authentication" : true + }, + "fork_repos" : { "path" : "/:format/repos/fork/:user/:repo", "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ], "authentication" : true }, - "list_all_repos" : { + "create_repo" : { + "path" : "/:format/repos/create", + "method" : "POST", + "form-data" : { + "name" : ":name", + "description" : ":description", + "homepage" : ":homepage", + "public" : ":public" + }, + "required_params" : [ + "format", + "name" + ], + "optional_params" : [ + "description", + "homepage", + "public" + ], + "authentication" : true + }, + "del_repo" : { + "path" : "/:format/repos/delete/:user/:repo", + "method" : "POST", "required_params" : [ "format", "user", "repo" ], - "path" : "/:format/repos/show/:user", - "method" : "GET" + "authentication" : true }, - "repos_search" : { + "set_private" : { + "path" : "/:format/repos/set/private/:user/:repo", + "method" : "POST", "required_params" : [ "format", - "q" + "user", + "repo" ], - "path" : "/:format/repos/search/:q", - "method" : "GET" + "authentication" : true }, - "watch_repo" : { + "set_public" : { + "path" : "/:format/repos/set/public/:user/:repo", + "method" : "POST", "required_params" : [ "format", "user", "repo" ], - "path" : "/:format/repos/watch/:user/:repo", + "authentication" : true + }, + "list_repo_keys" : { + "path" : "/:format/repos/keys/:user/:repo", "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ], "authentication" : true }, - "create_repo" : { + "add_repo_key" : { + "path" : "/:format/repos/key/:user/:repo/add", + "method" : "POST", + "form-data" : { + "title" : ":title", + "key" : ":key" + }, "required_params" : [ - "format" + "format", + "user", + "repo", + "title", + "key" ], - "path" : "/:format/repos/create", + "authentication" : true + }, + "del_repo_key" : { + "path" : "/:format/repos/key/:user/:repo/remove", "method" : "POST", + "form-data" : { + "id" : ":id" + }, + "required_params" : [ + "format", + "user", + "repo", + "id" + ], "authentication" : true }, - "set_repo_info" : { + "list_collaborators" : { + "path" : "/:format/repos/show/:user/:repo/collaborators", + "method" : "GET", "required_params" : [ "format", "user", "repo" ], - "path" : "/:format/repos/show/:user/:repo", + "authentication" : true + }, + "add_collaborator" : { + "path" : "/:format/repos/collaborators/:user/:repo/add/:collaborator", "method" : "POST", + "required_params" : [ + "format", + "user", + "repo", + "collaborator" + ], + "authentication" : true + }, + "del_collaborator" : { + "path" : "/:format/repos/collaborators/:user/:repo/remove/:collaborator", + "method" : "POST", + "required_params" : [ + "format", + "user", + "repo", + "collaborator" + ], + "authentication" : true + }, + "list_pushable" : { + "path" : "/:format/repos/pushable", + "method" : "GET", + "required_params" : [ + "format" + ], "authentication" : true + }, + "list_contributors" : { + "path" : "/:format/repos/show/:user/:repo/contributors", + "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ] + }, + "repo_watchers" : { + "path" : "/:format/repos/show/:user/:repo/watchers", + "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ] + }, + "repo_network" : { + "path" : "/:format/repos/show/:user/:repo/network", + "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ] + }, + "repo_languages" : { + "path" : "/:format/repos/show/:user/:repo/languages", + "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ] + }, + "repo_tags" : { + "path" : "/:format/repos/show/:user/:repo/tags", + "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ] + }, + "repo_branches" : { + "path" : "/:format/repos/show/:user/:repo/branches", + "method" : "GET", + "required_params" : [ + "format", + "user", + "repo" + ] } }, "expected_status" : [ 200 ], |
