gitabu 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +33 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +65 -0
- data/LICENSE.txt +21 -0
- data/README.md +42 -0
- data/Rakefile +12 -0
- data/gitabu.gemspec +41 -0
- data/lib/gitabu/api/v3/actions.rb +3724 -0
- data/lib/gitabu/api/v3/activity.rb +835 -0
- data/lib/gitabu/api/v3/apps.rb +961 -0
- data/lib/gitabu/api/v3/billing.rb +217 -0
- data/lib/gitabu/api/v3/branches.rb +1098 -0
- data/lib/gitabu/api/v3/checks.rb +384 -0
- data/lib/gitabu/api/v3/code_scanning.rb +315 -0
- data/lib/gitabu/api/v3/codes_of_conduct.rb +92 -0
- data/lib/gitabu/api/v3/codespaces.rb +650 -0
- data/lib/gitabu/api/v3/collaborators.rb +341 -0
- data/lib/gitabu/api/v3/commits.rb +428 -0
- data/lib/gitabu/api/v3/dependabot.rb +419 -0
- data/lib/gitabu/api/v3/deploy_keys.rb +152 -0
- data/lib/gitabu/api/v3/deployments.rb +356 -0
- data/lib/gitabu/api/v3/emojis.rb +67 -0
- data/lib/gitabu/api/v3/enterprise_admin.rb +495 -0
- data/lib/gitabu/api/v3/gists.rb +552 -0
- data/lib/gitabu/api/v3/git.rb +409 -0
- data/lib/gitabu/api/v3/gitignore.rb +92 -0
- data/lib/gitabu/api/v3/interactions.rb +275 -0
- data/lib/gitabu/api/v3/issues.rb +1119 -0
- data/lib/gitabu/api/v3/licenses.rb +118 -0
- data/lib/gitabu/api/v3/markdown.rb +94 -0
- data/lib/gitabu/api/v3/meta.rb +142 -0
- data/lib/gitabu/api/v3/metrics.rb +302 -0
- data/lib/gitabu/api/v3/migrations.rb +631 -0
- data/lib/gitabu/api/v3/orgs.rb +1291 -0
- data/lib/gitabu/api/v3/packages.rb +686 -0
- data/lib/gitabu/api/v3/pages.rb +282 -0
- data/lib/gitabu/api/v3/projects.rb +693 -0
- data/lib/gitabu/api/v3/pulls.rb +816 -0
- data/lib/gitabu/api/v3/rate_limit.rb +67 -0
- data/lib/gitabu/api/v3/reactions.rb +734 -0
- data/lib/gitabu/api/v3/releases.rb +411 -0
- data/lib/gitabu/api/v3/repos.rb +1136 -0
- data/lib/gitabu/api/v3/scim.rb +214 -0
- data/lib/gitabu/api/v3/search.rb +217 -0
- data/lib/gitabu/api/v3/secret_scanning.rb +201 -0
- data/lib/gitabu/api/v3/teams.rb +1963 -0
- data/lib/gitabu/api/v3/users.rb +851 -0
- data/lib/gitabu/api/v3/webhooks.rb +379 -0
- data/lib/gitabu/builder.rb +37 -0
- data/lib/gitabu/client.rb +8 -0
- data/lib/gitabu/generator.rb +75 -0
- data/lib/gitabu/http_client.rb +96 -0
- data/lib/gitabu/items.rb +110 -0
- data/lib/gitabu/public/api/v3/actions.json +5779 -0
- data/lib/gitabu/public/api/v3/activity.json +1248 -0
- data/lib/gitabu/public/api/v3/apps.json +1174 -0
- data/lib/gitabu/public/api/v3/billing.json +183 -0
- data/lib/gitabu/public/api/v3/branches.json +1886 -0
- data/lib/gitabu/public/api/v3/checks.json +856 -0
- data/lib/gitabu/public/api/v3/code_scanning.json +666 -0
- data/lib/gitabu/public/api/v3/codes_of_conduct.json +41 -0
- data/lib/gitabu/public/api/v3/codespaces.json +884 -0
- data/lib/gitabu/public/api/v3/collaborators.json +464 -0
- data/lib/gitabu/public/api/v3/commits.json +830 -0
- data/lib/gitabu/public/api/v3/dependabot.json +596 -0
- data/lib/gitabu/public/api/v3/deploy_keys.json +195 -0
- data/lib/gitabu/public/api/v3/deployments.json +698 -0
- data/lib/gitabu/public/api/v3/emojis.json +18 -0
- data/lib/gitabu/public/api/v3/enterprise_admin.json +881 -0
- data/lib/gitabu/public/api/v3/gists.json +689 -0
- data/lib/gitabu/public/api/v3/git.json +735 -0
- data/lib/gitabu/public/api/v3/gitignore.json +41 -0
- data/lib/gitabu/public/api/v3/interactions.json +265 -0
- data/lib/gitabu/public/api/v3/issues.json +2359 -0
- data/lib/gitabu/public/api/v3/licenses.json +100 -0
- data/lib/gitabu/public/api/v3/markdown.json +59 -0
- data/lib/gitabu/public/api/v3/meta.json +69 -0
- data/lib/gitabu/public/api/v3/metrics.json +342 -0
- data/lib/gitabu/public/api/v3/migrations.json +960 -0
- data/lib/gitabu/public/api/v3/orgs.json +1989 -0
- data/lib/gitabu/public/api/v3/packages.json +1078 -0
- data/lib/gitabu/public/api/v3/pages.json +373 -0
- data/lib/gitabu/public/api/v3/projects.json +966 -0
- data/lib/gitabu/public/api/v3/pulls.json +1768 -0
- data/lib/gitabu/public/api/v3/rate_limit.json +18 -0
- data/lib/gitabu/public/api/v3/reactions.json +1425 -0
- data/lib/gitabu/public/api/v3/releases.json +753 -0
- data/lib/gitabu/public/api/v3/repos.json +2314 -0
- data/lib/gitabu/public/api/v3/scim.json +412 -0
- data/lib/gitabu/public/api/v3/search.json +408 -0
- data/lib/gitabu/public/api/v3/secret_scanning.json +385 -0
- data/lib/gitabu/public/api/v3/teams.json +3126 -0
- data/lib/gitabu/public/api/v3/users.json +956 -0
- data/lib/gitabu/public/api/v3/webhooks.json +667 -0
- data/lib/gitabu/run.rb +237 -0
- data/lib/gitabu/scraper.rb +86 -0
- data/lib/gitabu/templates/template.rb.erb +70 -0
- data/lib/gitabu/version.rb +6 -0
- data/lib/gitabu.rb +57 -0
- data/sig/gitabu.rbs +4 -0
- metadata +177 -0
|
@@ -0,0 +1,956 @@
|
|
|
1
|
+
{
|
|
2
|
+
"result": [
|
|
3
|
+
{
|
|
4
|
+
"namespace_description": "Get the authenticated user",
|
|
5
|
+
"method": "get",
|
|
6
|
+
"endpoint": "/user",
|
|
7
|
+
"field_0": {
|
|
8
|
+
"field_type": "header",
|
|
9
|
+
"fields": {
|
|
10
|
+
"name": "accept",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"in": "header",
|
|
13
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"namespace_description": "Update the authenticated user",
|
|
19
|
+
"method": "patch",
|
|
20
|
+
"endpoint": "/user",
|
|
21
|
+
"field_0": {
|
|
22
|
+
"field_type": "header",
|
|
23
|
+
"fields": {
|
|
24
|
+
"name": "accept",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"in": "header",
|
|
27
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"field_1": {
|
|
31
|
+
"field_type": "body",
|
|
32
|
+
"fields": {
|
|
33
|
+
"name": "name",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"in": "body",
|
|
36
|
+
"description": "The new name of the user."
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"field_2": {
|
|
40
|
+
"field_type": "body",
|
|
41
|
+
"fields": {
|
|
42
|
+
"name": "email",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"in": "body",
|
|
45
|
+
"description": "The publicly visible email address of the user."
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"field_3": {
|
|
49
|
+
"field_type": "body",
|
|
50
|
+
"fields": {
|
|
51
|
+
"name": "blog",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"in": "body",
|
|
54
|
+
"description": "The new blog URL of the user."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"field_4": {
|
|
58
|
+
"field_type": "body",
|
|
59
|
+
"fields": {
|
|
60
|
+
"name": "twitter_username",
|
|
61
|
+
"type": "string or null",
|
|
62
|
+
"in": "body",
|
|
63
|
+
"description": "The new Twitter username of the user."
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"field_5": {
|
|
67
|
+
"field_type": "body",
|
|
68
|
+
"fields": {
|
|
69
|
+
"name": "company",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"in": "body",
|
|
72
|
+
"description": "The new company of the user."
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"field_6": {
|
|
76
|
+
"field_type": "body",
|
|
77
|
+
"fields": {
|
|
78
|
+
"name": "location",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"in": "body",
|
|
81
|
+
"description": "The new location of the user."
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"field_7": {
|
|
85
|
+
"field_type": "body",
|
|
86
|
+
"fields": {
|
|
87
|
+
"name": "hireable",
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"in": "body",
|
|
90
|
+
"description": "The new hiring availability of the user."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"field_8": {
|
|
94
|
+
"field_type": "body",
|
|
95
|
+
"fields": {
|
|
96
|
+
"name": "bio",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"in": "body",
|
|
99
|
+
"description": "The new short biography of the user."
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"namespace_description": "List users",
|
|
105
|
+
"method": "get",
|
|
106
|
+
"endpoint": "/users",
|
|
107
|
+
"field_0": {
|
|
108
|
+
"field_type": "header",
|
|
109
|
+
"fields": {
|
|
110
|
+
"name": "accept",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"in": "header",
|
|
113
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"field_1": {
|
|
117
|
+
"field_type": "query",
|
|
118
|
+
"fields": {
|
|
119
|
+
"name": "since",
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"in": "query",
|
|
122
|
+
"description": "A user ID. Only return users with an ID greater than this ID."
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"field_2": {
|
|
126
|
+
"field_type": "query",
|
|
127
|
+
"fields": {
|
|
128
|
+
"name": "per_page",
|
|
129
|
+
"type": "integer",
|
|
130
|
+
"in": "query",
|
|
131
|
+
"description": "Results per page (max 100)Default: 30"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"namespace_description": "Get a user",
|
|
137
|
+
"method": "get",
|
|
138
|
+
"endpoint": "/users/{username}",
|
|
139
|
+
"field_0": {
|
|
140
|
+
"field_type": "header",
|
|
141
|
+
"fields": {
|
|
142
|
+
"name": "accept",
|
|
143
|
+
"type": "string",
|
|
144
|
+
"in": "header",
|
|
145
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"field_1": {
|
|
149
|
+
"field_type": "path",
|
|
150
|
+
"fields": {
|
|
151
|
+
"name": "username",
|
|
152
|
+
"type": "string",
|
|
153
|
+
"in": "path",
|
|
154
|
+
"description": ""
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"namespace_description": "Get contextual information for a user",
|
|
160
|
+
"method": "get",
|
|
161
|
+
"endpoint": "curl -u username:token\n https://api.github.com/users/octocat/hovercard?subject_type=repository&subject_id=1300192",
|
|
162
|
+
"field_0": {
|
|
163
|
+
"field_type": "header",
|
|
164
|
+
"fields": {
|
|
165
|
+
"name": "accept",
|
|
166
|
+
"type": "string",
|
|
167
|
+
"in": "header",
|
|
168
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"field_1": {
|
|
172
|
+
"field_type": "path",
|
|
173
|
+
"fields": {
|
|
174
|
+
"name": "username",
|
|
175
|
+
"type": "string",
|
|
176
|
+
"in": "path",
|
|
177
|
+
"description": ""
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"field_2": {
|
|
181
|
+
"field_type": "query",
|
|
182
|
+
"fields": {
|
|
183
|
+
"name": "subject_type",
|
|
184
|
+
"type": "string",
|
|
185
|
+
"in": "query",
|
|
186
|
+
"description": "Identifies which additional information you'd like to receive about the person's hovercard. Can be organization, repository, issue, pull_request. Required when using subject_id."
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"field_3": {
|
|
190
|
+
"field_type": "query",
|
|
191
|
+
"fields": {
|
|
192
|
+
"name": "subject_id",
|
|
193
|
+
"type": "string",
|
|
194
|
+
"in": "query",
|
|
195
|
+
"description": "Uses the ID for the subject_type you specified. Required when using subject_type."
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"namespace_description": "List users blocked by the authenticated user",
|
|
201
|
+
"method": "get",
|
|
202
|
+
"endpoint": "/user/blocks",
|
|
203
|
+
"field_0": {
|
|
204
|
+
"field_type": "header",
|
|
205
|
+
"fields": {
|
|
206
|
+
"name": "accept",
|
|
207
|
+
"type": "string",
|
|
208
|
+
"in": "header",
|
|
209
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"namespace_description": "Check if a user is blocked by the authenticated user",
|
|
215
|
+
"method": "get",
|
|
216
|
+
"endpoint": "/user/blocks/{username}",
|
|
217
|
+
"field_0": {
|
|
218
|
+
"field_type": "header",
|
|
219
|
+
"fields": {
|
|
220
|
+
"name": "accept",
|
|
221
|
+
"type": "string",
|
|
222
|
+
"in": "header",
|
|
223
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"field_1": {
|
|
227
|
+
"field_type": "path",
|
|
228
|
+
"fields": {
|
|
229
|
+
"name": "username",
|
|
230
|
+
"type": "string",
|
|
231
|
+
"in": "path",
|
|
232
|
+
"description": ""
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"namespace_description": "Block a user",
|
|
238
|
+
"method": "put",
|
|
239
|
+
"endpoint": "/user/blocks/{username}",
|
|
240
|
+
"field_0": {
|
|
241
|
+
"field_type": "header",
|
|
242
|
+
"fields": {
|
|
243
|
+
"name": "accept",
|
|
244
|
+
"type": "string",
|
|
245
|
+
"in": "header",
|
|
246
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"field_1": {
|
|
250
|
+
"field_type": "path",
|
|
251
|
+
"fields": {
|
|
252
|
+
"name": "username",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"in": "path",
|
|
255
|
+
"description": ""
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"namespace_description": "Unblock a user",
|
|
261
|
+
"method": "delete",
|
|
262
|
+
"endpoint": "/user/blocks/{username}",
|
|
263
|
+
"field_0": {
|
|
264
|
+
"field_type": "header",
|
|
265
|
+
"fields": {
|
|
266
|
+
"name": "accept",
|
|
267
|
+
"type": "string",
|
|
268
|
+
"in": "header",
|
|
269
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"field_1": {
|
|
273
|
+
"field_type": "path",
|
|
274
|
+
"fields": {
|
|
275
|
+
"name": "username",
|
|
276
|
+
"type": "string",
|
|
277
|
+
"in": "path",
|
|
278
|
+
"description": ""
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"namespace_description": "Set primary email visibility for the authenticated user",
|
|
284
|
+
"method": "patch",
|
|
285
|
+
"endpoint": "/user/email/visibility",
|
|
286
|
+
"field_0": {
|
|
287
|
+
"field_type": "header",
|
|
288
|
+
"fields": {
|
|
289
|
+
"name": "accept",
|
|
290
|
+
"type": "string",
|
|
291
|
+
"in": "header",
|
|
292
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"field_1": {
|
|
296
|
+
"field_type": "body",
|
|
297
|
+
"fields": {
|
|
298
|
+
"name": "visibility",
|
|
299
|
+
"type": "string",
|
|
300
|
+
"in": "body",
|
|
301
|
+
"description": "Required. Denotes whether an email is publicly visible."
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"namespace_description": "List email addresses for the authenticated user",
|
|
307
|
+
"method": "get",
|
|
308
|
+
"endpoint": "/user/emails",
|
|
309
|
+
"field_0": {
|
|
310
|
+
"field_type": "header",
|
|
311
|
+
"fields": {
|
|
312
|
+
"name": "accept",
|
|
313
|
+
"type": "string",
|
|
314
|
+
"in": "header",
|
|
315
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"field_1": {
|
|
319
|
+
"field_type": "query",
|
|
320
|
+
"fields": {
|
|
321
|
+
"name": "per_page",
|
|
322
|
+
"type": "integer",
|
|
323
|
+
"in": "query",
|
|
324
|
+
"description": "Results per page (max 100)Default: 30"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"field_2": {
|
|
328
|
+
"field_type": "query",
|
|
329
|
+
"fields": {
|
|
330
|
+
"name": "page",
|
|
331
|
+
"type": "integer",
|
|
332
|
+
"in": "query",
|
|
333
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"namespace_description": "Add an email address for the authenticated user",
|
|
339
|
+
"method": "post",
|
|
340
|
+
"endpoint": "/user/emails",
|
|
341
|
+
"field_0": {
|
|
342
|
+
"field_type": "header",
|
|
343
|
+
"fields": {
|
|
344
|
+
"name": "accept",
|
|
345
|
+
"type": "string",
|
|
346
|
+
"in": "header",
|
|
347
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"field_1": {
|
|
351
|
+
"field_type": "body",
|
|
352
|
+
"fields": {
|
|
353
|
+
"name": "emails",
|
|
354
|
+
"type": "array of strings",
|
|
355
|
+
"in": "body",
|
|
356
|
+
"description": "Required. Adds one or more email addresses to your GitHub account. Must contain at least one email address. Note: Alternatively, you can pass a single email address or an array of emails addresses directly, but we recommend that you pass an object using the emails key."
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"namespace_description": "Delete an email address for the authenticated user",
|
|
362
|
+
"method": "delete",
|
|
363
|
+
"endpoint": "/user/emails",
|
|
364
|
+
"field_0": {
|
|
365
|
+
"field_type": "header",
|
|
366
|
+
"fields": {
|
|
367
|
+
"name": "accept",
|
|
368
|
+
"type": "string",
|
|
369
|
+
"in": "header",
|
|
370
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"field_1": {
|
|
374
|
+
"field_type": "body",
|
|
375
|
+
"fields": {
|
|
376
|
+
"name": "emails",
|
|
377
|
+
"type": "array of strings",
|
|
378
|
+
"in": "body",
|
|
379
|
+
"description": "Required. Email addresses associated with the GitHub user account."
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"namespace_description": "List public email addresses for the authenticated user",
|
|
385
|
+
"method": "get",
|
|
386
|
+
"endpoint": "/user/public_emails",
|
|
387
|
+
"field_0": {
|
|
388
|
+
"field_type": "header",
|
|
389
|
+
"fields": {
|
|
390
|
+
"name": "accept",
|
|
391
|
+
"type": "string",
|
|
392
|
+
"in": "header",
|
|
393
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"field_1": {
|
|
397
|
+
"field_type": "query",
|
|
398
|
+
"fields": {
|
|
399
|
+
"name": "per_page",
|
|
400
|
+
"type": "integer",
|
|
401
|
+
"in": "query",
|
|
402
|
+
"description": "Results per page (max 100)Default: 30"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"field_2": {
|
|
406
|
+
"field_type": "query",
|
|
407
|
+
"fields": {
|
|
408
|
+
"name": "page",
|
|
409
|
+
"type": "integer",
|
|
410
|
+
"in": "query",
|
|
411
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"namespace_description": "List followers of the authenticated user",
|
|
417
|
+
"method": "get",
|
|
418
|
+
"endpoint": "/user/followers",
|
|
419
|
+
"field_0": {
|
|
420
|
+
"field_type": "header",
|
|
421
|
+
"fields": {
|
|
422
|
+
"name": "accept",
|
|
423
|
+
"type": "string",
|
|
424
|
+
"in": "header",
|
|
425
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"field_1": {
|
|
429
|
+
"field_type": "query",
|
|
430
|
+
"fields": {
|
|
431
|
+
"name": "per_page",
|
|
432
|
+
"type": "integer",
|
|
433
|
+
"in": "query",
|
|
434
|
+
"description": "Results per page (max 100)Default: 30"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"field_2": {
|
|
438
|
+
"field_type": "query",
|
|
439
|
+
"fields": {
|
|
440
|
+
"name": "page",
|
|
441
|
+
"type": "integer",
|
|
442
|
+
"in": "query",
|
|
443
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"namespace_description": "List the people the authenticated user follows",
|
|
449
|
+
"method": "get",
|
|
450
|
+
"endpoint": "/user/following",
|
|
451
|
+
"field_0": {
|
|
452
|
+
"field_type": "header",
|
|
453
|
+
"fields": {
|
|
454
|
+
"name": "accept",
|
|
455
|
+
"type": "string",
|
|
456
|
+
"in": "header",
|
|
457
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"field_1": {
|
|
461
|
+
"field_type": "query",
|
|
462
|
+
"fields": {
|
|
463
|
+
"name": "per_page",
|
|
464
|
+
"type": "integer",
|
|
465
|
+
"in": "query",
|
|
466
|
+
"description": "Results per page (max 100)Default: 30"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"field_2": {
|
|
470
|
+
"field_type": "query",
|
|
471
|
+
"fields": {
|
|
472
|
+
"name": "page",
|
|
473
|
+
"type": "integer",
|
|
474
|
+
"in": "query",
|
|
475
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"namespace_description": "Check if a person is followed by the authenticated user",
|
|
481
|
+
"method": "get",
|
|
482
|
+
"endpoint": "/user/following/{username}",
|
|
483
|
+
"field_0": {
|
|
484
|
+
"field_type": "header",
|
|
485
|
+
"fields": {
|
|
486
|
+
"name": "accept",
|
|
487
|
+
"type": "string",
|
|
488
|
+
"in": "header",
|
|
489
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"field_1": {
|
|
493
|
+
"field_type": "path",
|
|
494
|
+
"fields": {
|
|
495
|
+
"name": "username",
|
|
496
|
+
"type": "string",
|
|
497
|
+
"in": "path",
|
|
498
|
+
"description": ""
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"namespace_description": "Follow a user",
|
|
504
|
+
"method": "put",
|
|
505
|
+
"endpoint": "/user/following/{username}",
|
|
506
|
+
"field_0": {
|
|
507
|
+
"field_type": "header",
|
|
508
|
+
"fields": {
|
|
509
|
+
"name": "accept",
|
|
510
|
+
"type": "string",
|
|
511
|
+
"in": "header",
|
|
512
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"field_1": {
|
|
516
|
+
"field_type": "path",
|
|
517
|
+
"fields": {
|
|
518
|
+
"name": "username",
|
|
519
|
+
"type": "string",
|
|
520
|
+
"in": "path",
|
|
521
|
+
"description": ""
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"namespace_description": "Unfollow a user",
|
|
527
|
+
"method": "delete",
|
|
528
|
+
"endpoint": "/user/following/{username}",
|
|
529
|
+
"field_0": {
|
|
530
|
+
"field_type": "header",
|
|
531
|
+
"fields": {
|
|
532
|
+
"name": "accept",
|
|
533
|
+
"type": "string",
|
|
534
|
+
"in": "header",
|
|
535
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
"field_1": {
|
|
539
|
+
"field_type": "path",
|
|
540
|
+
"fields": {
|
|
541
|
+
"name": "username",
|
|
542
|
+
"type": "string",
|
|
543
|
+
"in": "path",
|
|
544
|
+
"description": ""
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"namespace_description": "List followers of a user",
|
|
550
|
+
"method": "get",
|
|
551
|
+
"endpoint": "/users/{username}/followers",
|
|
552
|
+
"field_0": {
|
|
553
|
+
"field_type": "header",
|
|
554
|
+
"fields": {
|
|
555
|
+
"name": "accept",
|
|
556
|
+
"type": "string",
|
|
557
|
+
"in": "header",
|
|
558
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
"field_1": {
|
|
562
|
+
"field_type": "path",
|
|
563
|
+
"fields": {
|
|
564
|
+
"name": "username",
|
|
565
|
+
"type": "string",
|
|
566
|
+
"in": "path",
|
|
567
|
+
"description": ""
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"field_2": {
|
|
571
|
+
"field_type": "query",
|
|
572
|
+
"fields": {
|
|
573
|
+
"name": "per_page",
|
|
574
|
+
"type": "integer",
|
|
575
|
+
"in": "query",
|
|
576
|
+
"description": "Results per page (max 100)Default: 30"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"field_3": {
|
|
580
|
+
"field_type": "query",
|
|
581
|
+
"fields": {
|
|
582
|
+
"name": "page",
|
|
583
|
+
"type": "integer",
|
|
584
|
+
"in": "query",
|
|
585
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"namespace_description": "List the people a user follows",
|
|
591
|
+
"method": "get",
|
|
592
|
+
"endpoint": "/users/{username}/following",
|
|
593
|
+
"field_0": {
|
|
594
|
+
"field_type": "header",
|
|
595
|
+
"fields": {
|
|
596
|
+
"name": "accept",
|
|
597
|
+
"type": "string",
|
|
598
|
+
"in": "header",
|
|
599
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"field_1": {
|
|
603
|
+
"field_type": "path",
|
|
604
|
+
"fields": {
|
|
605
|
+
"name": "username",
|
|
606
|
+
"type": "string",
|
|
607
|
+
"in": "path",
|
|
608
|
+
"description": ""
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"field_2": {
|
|
612
|
+
"field_type": "query",
|
|
613
|
+
"fields": {
|
|
614
|
+
"name": "per_page",
|
|
615
|
+
"type": "integer",
|
|
616
|
+
"in": "query",
|
|
617
|
+
"description": "Results per page (max 100)Default: 30"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"field_3": {
|
|
621
|
+
"field_type": "query",
|
|
622
|
+
"fields": {
|
|
623
|
+
"name": "page",
|
|
624
|
+
"type": "integer",
|
|
625
|
+
"in": "query",
|
|
626
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"namespace_description": "Check if a user follows another user",
|
|
632
|
+
"method": "get",
|
|
633
|
+
"endpoint": "/users/{username}/following/{target_user}",
|
|
634
|
+
"field_0": {
|
|
635
|
+
"field_type": "header",
|
|
636
|
+
"fields": {
|
|
637
|
+
"name": "accept",
|
|
638
|
+
"type": "string",
|
|
639
|
+
"in": "header",
|
|
640
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"field_1": {
|
|
644
|
+
"field_type": "path",
|
|
645
|
+
"fields": {
|
|
646
|
+
"name": "username",
|
|
647
|
+
"type": "string",
|
|
648
|
+
"in": "path",
|
|
649
|
+
"description": ""
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"field_2": {
|
|
653
|
+
"field_type": "path",
|
|
654
|
+
"fields": {
|
|
655
|
+
"name": "target_user",
|
|
656
|
+
"type": "string",
|
|
657
|
+
"in": "path",
|
|
658
|
+
"description": ""
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"namespace_description": "List GPG keys for the authenticated user",
|
|
664
|
+
"method": "get",
|
|
665
|
+
"endpoint": "/user/gpg_keys",
|
|
666
|
+
"field_0": {
|
|
667
|
+
"field_type": "header",
|
|
668
|
+
"fields": {
|
|
669
|
+
"name": "accept",
|
|
670
|
+
"type": "string",
|
|
671
|
+
"in": "header",
|
|
672
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"field_1": {
|
|
676
|
+
"field_type": "query",
|
|
677
|
+
"fields": {
|
|
678
|
+
"name": "per_page",
|
|
679
|
+
"type": "integer",
|
|
680
|
+
"in": "query",
|
|
681
|
+
"description": "Results per page (max 100)Default: 30"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"field_2": {
|
|
685
|
+
"field_type": "query",
|
|
686
|
+
"fields": {
|
|
687
|
+
"name": "page",
|
|
688
|
+
"type": "integer",
|
|
689
|
+
"in": "query",
|
|
690
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"namespace_description": "Create a GPG key for the authenticated user",
|
|
696
|
+
"method": "post",
|
|
697
|
+
"endpoint": "/user/gpg_keys",
|
|
698
|
+
"field_0": {
|
|
699
|
+
"field_type": "header",
|
|
700
|
+
"fields": {
|
|
701
|
+
"name": "accept",
|
|
702
|
+
"type": "string",
|
|
703
|
+
"in": "header",
|
|
704
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"field_1": {
|
|
708
|
+
"field_type": "body",
|
|
709
|
+
"fields": {
|
|
710
|
+
"name": "armored_public_key",
|
|
711
|
+
"type": "string",
|
|
712
|
+
"in": "body",
|
|
713
|
+
"description": "Required. A GPG key in ASCII-armored format."
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"namespace_description": "Get a GPG key for the authenticated user",
|
|
719
|
+
"method": "get",
|
|
720
|
+
"endpoint": "/user/gpg_keys/{gpg_key_id}",
|
|
721
|
+
"field_0": {
|
|
722
|
+
"field_type": "header",
|
|
723
|
+
"fields": {
|
|
724
|
+
"name": "accept",
|
|
725
|
+
"type": "string",
|
|
726
|
+
"in": "header",
|
|
727
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"field_1": {
|
|
731
|
+
"field_type": "path",
|
|
732
|
+
"fields": {
|
|
733
|
+
"name": "gpg_key_id",
|
|
734
|
+
"type": "integer",
|
|
735
|
+
"in": "path",
|
|
736
|
+
"description": "gpg_key_id parameter"
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"namespace_description": "Delete a GPG key for the authenticated user",
|
|
742
|
+
"method": "delete",
|
|
743
|
+
"endpoint": "/user/gpg_keys/{gpg_key_id}",
|
|
744
|
+
"field_0": {
|
|
745
|
+
"field_type": "header",
|
|
746
|
+
"fields": {
|
|
747
|
+
"name": "accept",
|
|
748
|
+
"type": "string",
|
|
749
|
+
"in": "header",
|
|
750
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
"field_1": {
|
|
754
|
+
"field_type": "path",
|
|
755
|
+
"fields": {
|
|
756
|
+
"name": "gpg_key_id",
|
|
757
|
+
"type": "integer",
|
|
758
|
+
"in": "path",
|
|
759
|
+
"description": "gpg_key_id parameter"
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"namespace_description": "List GPG keys for a user",
|
|
765
|
+
"method": "get",
|
|
766
|
+
"endpoint": "/users/{username}/gpg_keys",
|
|
767
|
+
"field_0": {
|
|
768
|
+
"field_type": "header",
|
|
769
|
+
"fields": {
|
|
770
|
+
"name": "accept",
|
|
771
|
+
"type": "string",
|
|
772
|
+
"in": "header",
|
|
773
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"field_1": {
|
|
777
|
+
"field_type": "path",
|
|
778
|
+
"fields": {
|
|
779
|
+
"name": "username",
|
|
780
|
+
"type": "string",
|
|
781
|
+
"in": "path",
|
|
782
|
+
"description": ""
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"field_2": {
|
|
786
|
+
"field_type": "query",
|
|
787
|
+
"fields": {
|
|
788
|
+
"name": "per_page",
|
|
789
|
+
"type": "integer",
|
|
790
|
+
"in": "query",
|
|
791
|
+
"description": "Results per page (max 100)Default: 30"
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
"field_3": {
|
|
795
|
+
"field_type": "query",
|
|
796
|
+
"fields": {
|
|
797
|
+
"name": "page",
|
|
798
|
+
"type": "integer",
|
|
799
|
+
"in": "query",
|
|
800
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"namespace_description": "List public SSH keys for the authenticated user",
|
|
806
|
+
"method": "get",
|
|
807
|
+
"endpoint": "/user/keys",
|
|
808
|
+
"field_0": {
|
|
809
|
+
"field_type": "header",
|
|
810
|
+
"fields": {
|
|
811
|
+
"name": "accept",
|
|
812
|
+
"type": "string",
|
|
813
|
+
"in": "header",
|
|
814
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
"field_1": {
|
|
818
|
+
"field_type": "query",
|
|
819
|
+
"fields": {
|
|
820
|
+
"name": "per_page",
|
|
821
|
+
"type": "integer",
|
|
822
|
+
"in": "query",
|
|
823
|
+
"description": "Results per page (max 100)Default: 30"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"field_2": {
|
|
827
|
+
"field_type": "query",
|
|
828
|
+
"fields": {
|
|
829
|
+
"name": "page",
|
|
830
|
+
"type": "integer",
|
|
831
|
+
"in": "query",
|
|
832
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"namespace_description": "Create a public SSH key for the authenticated user",
|
|
838
|
+
"method": "post",
|
|
839
|
+
"endpoint": "/user/keys",
|
|
840
|
+
"field_0": {
|
|
841
|
+
"field_type": "header",
|
|
842
|
+
"fields": {
|
|
843
|
+
"name": "accept",
|
|
844
|
+
"type": "string",
|
|
845
|
+
"in": "header",
|
|
846
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"field_1": {
|
|
850
|
+
"field_type": "body",
|
|
851
|
+
"fields": {
|
|
852
|
+
"name": "title",
|
|
853
|
+
"type": "string",
|
|
854
|
+
"in": "body",
|
|
855
|
+
"description": "A descriptive name for the new key."
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
"field_2": {
|
|
859
|
+
"field_type": "body",
|
|
860
|
+
"fields": {
|
|
861
|
+
"name": "key",
|
|
862
|
+
"type": "string",
|
|
863
|
+
"in": "body",
|
|
864
|
+
"description": "Required. The public SSH key to add to your GitHub account."
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"namespace_description": "Get a public SSH key for the authenticated user",
|
|
870
|
+
"method": "get",
|
|
871
|
+
"endpoint": "/user/keys/{key_id}",
|
|
872
|
+
"field_0": {
|
|
873
|
+
"field_type": "header",
|
|
874
|
+
"fields": {
|
|
875
|
+
"name": "accept",
|
|
876
|
+
"type": "string",
|
|
877
|
+
"in": "header",
|
|
878
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
"field_1": {
|
|
882
|
+
"field_type": "path",
|
|
883
|
+
"fields": {
|
|
884
|
+
"name": "key_id",
|
|
885
|
+
"type": "integer",
|
|
886
|
+
"in": "path",
|
|
887
|
+
"description": "key_id parameter"
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"namespace_description": "Delete a public SSH key for the authenticated user",
|
|
893
|
+
"method": "delete",
|
|
894
|
+
"endpoint": "/user/keys/{key_id}",
|
|
895
|
+
"field_0": {
|
|
896
|
+
"field_type": "header",
|
|
897
|
+
"fields": {
|
|
898
|
+
"name": "accept",
|
|
899
|
+
"type": "string",
|
|
900
|
+
"in": "header",
|
|
901
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
"field_1": {
|
|
905
|
+
"field_type": "path",
|
|
906
|
+
"fields": {
|
|
907
|
+
"name": "key_id",
|
|
908
|
+
"type": "integer",
|
|
909
|
+
"in": "path",
|
|
910
|
+
"description": "key_id parameter"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"namespace_description": "List public keys for a user",
|
|
916
|
+
"method": "get",
|
|
917
|
+
"endpoint": "/users/{username}/keys",
|
|
918
|
+
"field_0": {
|
|
919
|
+
"field_type": "header",
|
|
920
|
+
"fields": {
|
|
921
|
+
"name": "accept",
|
|
922
|
+
"type": "string",
|
|
923
|
+
"in": "header",
|
|
924
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"field_1": {
|
|
928
|
+
"field_type": "path",
|
|
929
|
+
"fields": {
|
|
930
|
+
"name": "username",
|
|
931
|
+
"type": "string",
|
|
932
|
+
"in": "path",
|
|
933
|
+
"description": ""
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"field_2": {
|
|
937
|
+
"field_type": "query",
|
|
938
|
+
"fields": {
|
|
939
|
+
"name": "per_page",
|
|
940
|
+
"type": "integer",
|
|
941
|
+
"in": "query",
|
|
942
|
+
"description": "Results per page (max 100)Default: 30"
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
"field_3": {
|
|
946
|
+
"field_type": "query",
|
|
947
|
+
"fields": {
|
|
948
|
+
"name": "page",
|
|
949
|
+
"type": "integer",
|
|
950
|
+
"in": "query",
|
|
951
|
+
"description": "Page number of the results to fetch.Default: 1"
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
}
|