Adapted from Advanced Microservices: bit.ly/2hlATo2
https://api.github.com/users/tlhunter
Accept
and application/json
into fieldshttps://api.github.com/users/:username/repos
?sort=created&direction=asc
username
to tlhunter
direction
to desc
Production
github_api
/ https://api.github.com
Development
github_api
/ http://localhost
{{github_api}}/users/tlhunter
Get User Repos
GitHub Sample
$ brew install jq curl
$ sudo apt-get install curl
$ chmod +x ./jq-*
$ curl -X GET -H "Accept: application/json" \
"https://api.github.com/users/tlhunter"
$ curl "https://api.github.com/users/tlhunter"
$ curl "https://api.github.com/users/tlhunter" | jq "."
$ curl "https://api.github.com/users/tlhunter" > account.json
$ cat account.json | jq "."
$ curl "https://api.github.com/users/tlhunter" \
| jq '{login, name, url: .html_url}'
$ curl "https://api.github.com/users/tlhunter/repos" | jq \
'[.[] | {full_name, watchers_count}] |
map(select(.watchers_count >= 1))'