GitHub GraphQL API
Ссылка на Dev GraphQL
Вход в учетную запись Github
GitHub's GraphQL Explorer
{
viewer {
login
bio
location
isBountyHunter
}
viewer {
login
starredRepositories {
totalCount
}
repositories(first: 5) {
edges {
node {
name
stargazers {
totalCount
}
forks {
totalCount
}
watchers {
totalCount
}
issues(states: [OPEN]) {
totalCount
}
}
}
}
}
}
Ответ от нашего API может быть следующим:
{
"data": {
"viewer": {
"login": "webmasters964",
"bio": "",
"location": "New Delhi",
"isBountyHunter": false,
"starredRepositories": {
"totalCount": 4
},
"repositories": {
"edges": [
{
"node": {
"name": "WCFRESTfulService",
"stargazers": {
"totalCount": 0
},
"forks": {
"totalCount": 1
},
"watchers": {
"totalCount": 1
},
"issues": {
"totalCount": 0
}
}
},
{
"node": {
"name": "Running-Node.js-server",
"stargazers": {
"totalCount": 0
},
"forks": {
"totalCount": 0
},
"watchers": {
"totalCount": 1
},
"issues": {
"totalCount": 0
}
}
},
{
"node": {
"name": "Running-JavaScript-Files",
"stargazers": {
"totalCount": 0
},
"forks": {
"totalCount": 0
},
"watchers": {
"totalCount": 1
},
"issues": {
"totalCount": 0
}
}
},
{
"node": {
"name": "Express.js-in-simple",
"stargazers": {
"totalCount": 0
},
"forks": {
"totalCount": 0
},
"watchers": {
"totalCount": 1
},
"issues": {
"totalCount": 0
}
}
},
{
"node": {
"name": "angularquickstart",
"stargazers": {
"totalCount": 0
},
"forks": {
"totalCount": 0
},
"watchers": {
"totalCount": 1
},
"issues": {
"totalCount": 0
}
}
}
]
}
}
}
}