summaryrefslogtreecommitdiff
path: root/services/github/user.json
blob: 5f5399ead4f76f0a692aa8cfa2e2828c3a46a476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
   "base_url" : "http://github.com/api/v2/",
   "version" : "0.4",
   "methods" : {
      "user_search" : {
         "path" : "/:format/user/search/:search",
         "method" : "GET",
         "required_params" : [
            "format",
            "search"
         ]
      },
      "get_info" : {
         "path" : "/:format/user/show/:username",
         "method" : "GET",
         "required_params" : [
            "format",
            "username"
         ]
      },
      "get_profile" : {
         "path" : "/:format/user/show",
         "method" : "GET",
         "required_params" : [
            "format"
         ],
         "authentication" : true
      },
      "update_profile" : {
         "path" : "/:format/user/show/:username",
         "method" : "POST",
         "form-data" : {
            "values[name]"       : ":name",
            "values[email]"      : ":email",
            "values[blog]"       : ":blog",
            "values[company]"    : ":company",
            "values[location]"   : ":location"
         },
         "required_params" : [
            "format",
            "username"
         ],
         "optional_params" : [
            "name",
            "email",
            "blog",
            "company",
            "location"
         ],
         "authentication" : true
      },
      "list_following" : {
         "path" : "/:format/user/show/:user/following",
         "method" : "GET",
         "required_params" : [
            "format",
            "user"
         ]
      },
      "list_followers" : {
         "path" : "/:format/user/show/:user/followers",
         "method" : "GET",
         "required_params" : [
            "format",
            "user"
         ]
      },
      "follow" : {
         "path" : "/:format/user/follow/:user",
         "method" : "POST",
         "required_params" : [
            "format",
            "user"
         ],
         "authentication" : true
      },
      "unfollow" : {
         "path" : "/:format/user/unfollow/:user",
         "method" : "POST",
         "required_params" : [
            "format",
            "user"
         ],
         "authentication" : true
      },
      "list_watched_repos" : {
         "path" : "/:format/repos/watched/:user",
         "method" : "GET",
         "required_params" : [
            "format",
            "user"
         ]
      },
      "list_keys" : {
         "path" : "/:format/user/keys",
         "method" : "GET",
         "required_params" : [
            "format"
         ],
         "authentication" : true
      },
      "add_key" : {
         "path" : "/:format/user/key/add",
         "method" : "POST",
         "form-data" : {
            "title" :   ":title",
            "key" :     ":key"
         },
         "required_params" : [
            "format",
            "title",
            "key"
         ],
         "authentication" : true
      },
      "remove_key" : {
         "path" : "/:format/user/key/remove",
         "method" : "POST",
         "form-data" : {
            "id" : ":id"
         },
         "required_params" : [
            "format",
            "id"
         ],
         "authentication" : true
      },
      "list_emails" : {
         "path" : "/:format/user/emails",
         "method" : "GET",
         "required_params" : [
            "format"
         ],
         "authentication" : true
      },
      "add_email" : {
         "path" : "/:format/user/email/add",
         "method" : "POST",
         "form-data" : {
            "email" : ":email"
         },
         "required_params" : [
            "format",
            "email"
         ],
         "authentication" : true
      },
      "remove_email" : {
         "path" : "/:format/user/email/remove",
         "method" : "POST",
         "form-data" : {
            "email" : ":email"
         },
         "required_params" : [
            "format",
            "email"
         ],
         "authentication" : true
      }
   },
   "expected_status" : [ 200 ],
   "name" : "GitHub",
   "authority" : "http://github.com/SPORE",
   "meta" : {
      "documentation" : "http://develop.github.com/",
      "module" : "user"
   }
}