HTTP Request:
curl /v1/loc?github=username/reponame
HTTP Request:
GET /v1/loc?github=username/reponame
GET /v1/loc?gitlab=username/reponame
Select branchIf you want a different branch than master
/v1/loc?SOURCE=USERNAME/REPONAME&branch=branchName
Ignore files or directoriesCan ignore files or directories using param ignored
/v1/loc?SOURCE=USERNAME/REPONAME&ignored=DIRNAME1,DIRNAME2,FILENAME
example :
/v1/loc?github=octocat/Hello-World
/v1/loc?gitlab=gitlab-org/gitlab-runner
/v1/loc?github=ImageMagick/ImageMagick&branch=gh-pages
/v1/loc?github=octocat/Hello-World&ignored=www,main.go
response :
[{
"language": "JavaScript",
"files": 1,
"lines": 176,
"blanks": 14,
"comments": 6,
"linesOfCode": 156
},
... more languages
{
"language": "Total",
"files": 8,
"lines": 921,
"blanks": 148,
"comments": 46,
"linesOfCode": 743
}]