-
Notifications
You must be signed in to change notification settings - Fork 0
/
api endpoints.txt
21 lines (14 loc) · 732 Bytes
/
api endpoints.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// to list all public repos
https://api.github.com/repositories
// to list all public repos having id > x
https://api.github.com/repositories?since=x
// to search bsed on language
https://api.github.com/search/repositories?q=language:Javascript
// to sort based on stars or other parameters
https://api.github.com/search/repositories?q=language:Javascript&sort=stars&order=desc&page=1&per_page=10
// to search based on name
https://api.github.com/search/repositories?q=name:react
// for the following link to list all public repos(data: [])
// const url = 'https://api.github.com/repositories';
// const sampleUrl =
// ' https://api.github.com/search/repositories?q=language:go&sort=stars&order=desc&page=1&per_page=10';