-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
apiary.apib
210 lines (190 loc) · 7.27 KB
/
apiary.apib
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
FORMAT: 1A
HOST: https://ghapi.huchen.dev/
# GitHub Trending API
GitHub Trending API is a simple API to fetch trending repositories and developers.
## Repositories [/repositories{?language,since,spoken_language_code}]
+ Parameters
+ language (string, optional) - Programming language
+ since (string, optional) - Trending period: `daily`, `weekly`, `monthly`
+ Default: `daily`
+ spoken_language_code (string, optional) - Spoken language
### List Trending Repositories [GET]
+ Response 200 (application/json)
[
{
"author": "xingshaocheng",
"name": "architect-awesome",
"avatar": "https://github.com/xingshaocheng.png",
"url": "https://github.com/xingshaocheng/architect-awesome",
"description": "后端架构师技术图谱",
"language": "Go",
"languageColor": "#3572A5",
"stars": 7333,
"forks": 1546,
"currentPeriodStars": 1528,
"builtBy": [
{
"href": "https://github.com/viatsko",
"avatar": "https://avatars0.githubusercontent.com/u/376065",
"username": "viatsko"
}
]
},
{
"author": "google",
"name": "gvisor",
"avatar": "https://github.com/google.png",
"url": "https://github.com/google/gvisor",
"description": "Container Runtime Sandbox",
"language": "Go",
"languageColor": "#3572A5",
"stars": 3346,
"forks": 118,
"currentPeriodStars": 1624,
"builtBy": [
{
"href": "https://github.com/viatsko",
"avatar": "https://avatars0.githubusercontent.com/u/376065",
"username": "viatsko"
}
]
},
{
"author": "davideuler",
"name": "architecture.of.internet-product",
"avatar": "https://github.com/davideuler.png",
"url": "https://github.com/davideuler/architecture.of.internet-product",
"description": "互联网公司技术架构,微信/淘宝/腾讯/阿里/美团点评/百度/微博/Google/Facebook/Amazon/eBay的架构,欢迎PR补充",
"language": "Go",
"languageColor": "#3572A5",
"stars": 2763,
"forks": 416,
"currentPeriodStars": 1427,
"builtBy": [
{
"href": "https://github.com/viatsko",
"avatar": "https://avatars0.githubusercontent.com/u/376065",
"username": "viatsko"
}
]
},
{
"author": "kusti8",
"name": "proton-native",
"avatar": "https://github.com/kusti8.png",
"url": "https://github.com/kusti8/proton-native",
"description": "A React environment for cross platform native desktop apps",
"language": "JavaScript",
"languageColor": "#3572A5",
"stars": 4711,
"forks": 124,
"currentPeriodStars": 1186,
"builtBy": [
{
"href": "https://github.com/viatsko",
"avatar": "https://avatars0.githubusercontent.com/u/376065",
"username": "viatsko"
}
]
}
]
## Developers [/developers{?language,since}]
+ Parameters
+ language (string, optional) - Programming language
+ since (string, optional) - Trending period: `daily`, `weekly`, `monthly`
+ Default: `daily`
### List Trending Developers [GET]
+ Response 200 (application/json)
[
{
"username": "google",
"name": "Google",
"type": "organization",
"url": "https://github.com/google",
"avatar": "https://avatars0.githubusercontent.com/u/1342004",
"repo": {
"name": "material-design-icons",
"description": "Material Design icons by Google",
"url": "https://github.com/google/material-design-icons"
}
},
{
"username": "davideuler",
"name": "david l euler",
"type": "user",
"url": "https://github.com/davideuler",
"avatar": "https://avatars3.githubusercontent.com/u/377983",
"repo": {
"name": "architecture.of.internet-product",
"description":
"互联网公司技术架构,微信/淘宝/腾讯/阿里/美团点评/百度/微博/Google/Facebook/Amazon/eBay的架构,欢迎PR补充",
"url": "https://github.com/davideuler/architecture.of.internet-product"
}
},
{
"username": "xingshaocheng",
"type": "user",
"url": "https://github.com/xingshaocheng",
"avatar": "https://avatars1.githubusercontent.com/u/4962837",
"repo": {
"name": "architect-awesome",
"description": "后端架构师技术图谱",
"url": "https://github.com/xingshaocheng/architect-awesome"
}
},
{
"username": "cyanharlow",
"name": "Diana Smith",
"type": "user",
"url": "https://github.com/cyanharlow",
"avatar": "https://avatars2.githubusercontent.com/u/8030961",
"repo": {
"name": "purecss-francine",
"description":
"HTML/CSS drawing in the style of an 18th-century oil painting. Hand-coded entirely in HTML & CSS.",
"url": "https://github.com/cyanharlow/purecss-francine"
}
}
]
## Languages Collection [/languages]
### List Languages [GET]
+ Response 200 (application/json)
[
{
"id": "1c-enterprise",
"name": "1C Enterprise"
},
{
"id": "abap",
"name": "ABAP"
},
{
"id": "abnf",
"name": "ABNF"
},
{
"id": "actionscript",
"name": "ActionScript"
}
]
## Spoken Languages Collection [/spoken_languages]
### List Spoken Languages [GET]
+ Response 200 (application/json)
[
{
"urlParam": "ab",
"name": "Abkhazian"
},
{
"urlParam": "aa",
"name": "Afar"
},
{
"urlParam": "af",
"name": "Afrikaans"
},
{
"urlParam": "ak",
"name": "Akan"
},
]