summaryrefslogtreecommitdiff
path: root/services/github/user.json
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2010-10-22 20:25:42 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2010-10-22 20:25:42 +0200
commitc77fe8638bc1f4fb94cdbbc1f084199b9afdaf92 (patch)
tree7be29740fe0b9c036a820cfe54a7aa794aa4bbc3 /services/github/user.json
parentuse Pod::Usage (diff)
downloadapi-description-c77fe8638bc1f4fb94cdbbc1f084199b9afdaf92.tar.gz
modularized version of github API
Diffstat (limited to '')
-rw-r--r--services/github/user.json111
1 files changed, 111 insertions, 0 deletions
diff --git a/services/github/user.json b/services/github/user.json
new file mode 100644
index 0000000..98a488c
--- /dev/null
+++ b/services/github/user.json
@@ -0,0 +1,111 @@
+{
+ "base_url" : "http://github.com/api/v2/",
+ "version" : "0.2",
+ "methods" : {
+ "user_search" : {
+ "required_params" : [
+ "format",
+ "search"
+ ],
+ "path" : "/:format/user/search/:search",
+ "method" : "GET"
+ },
+ "user_information" : {
+ "required_params" : [
+ "username",
+ "format"
+ ],
+ "path" : "/:format/user/show/:username",
+ "method" : "GET"
+ },
+ "my_information" : {
+ "required_params" : [
+ "username",
+ "format"
+ ],
+ "path" : "/:format/user/show/:username",
+ "method" : "GET",
+ "authentication" : true
+ },
+ "update_profile" : {
+ "required_params" : [
+ "username",
+ "format"
+ ],
+ "path" : "/:format/user/show/:username",
+ "method" : "POST",
+ "authentication" : true
+ },
+ "follow" : {
+ "required_params" : [
+ "user",
+ "format"
+ ],
+ "path" : "/:format/user/follow/:user",
+ "method" : "POST",
+ "authentication" : true
+ },
+ "unfollow" : {
+ "required_params" : [
+ "user",
+ "format"
+ ],
+ "path" : "/:format/user/unfollow/:user",
+ "method" : "POST",
+ "authentication" : true
+ },
+ "list_public_keys" : {
+ "required_params" : [
+ "format"
+ ],
+ "path" : "/:format/user/keys",
+ "method" : "GET",
+ "authentication" : true
+ },
+ "add_public_key" : {
+ "required_params" : [
+ "format"
+ ],
+ "path" : "/:format/user/key/add",
+ "method" : "POST",
+ "authentication" : true
+ },
+ "del_public_key" : {
+ "required_params" : [
+ "format"
+ ],
+ "path" : "/:format/user/key/remove",
+ "method" : "POST",
+ "authentication" : true
+ },
+ "user_following" : {
+ "required_params" : [
+ "user",
+ "format"
+ ],
+ "path" : "/:format/user/show/:user/following",
+ "method" : "GET"
+ },
+ "watched_repos" : {
+ "required_params" : [
+ "format",
+ "user"
+ ],
+ "path" : "/:format/user/watched/:user",
+ "method" : "GET"
+ },
+ "user_followers" : {
+ "required_params" : [
+ "user",
+ "format"
+ ],
+ "path" : "/:format/user/show/:user/followers",
+ "method" : "GET"
+ }
+ },
+ "name" : "GitHub",
+ "authority" : "http://github.com/SPORE",
+ "meta" : {
+ "documentation" : "http://develop.github.com/"
+ }
+}