diff options
author | Roger Rüttimann <roger.ruettimann@gmail.com> | 2018-04-13 08:06:04 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-13 08:06:04 +0000 |
commit | e467a11ec75386b2674a75222208ec1f97a7d992 (patch) | |
tree | 30d5ff5325b46774fde0c1eb400ec1cb29bd1ce7 /doc/api/projects.md | |
parent | 70083ebf6da6f4a84fdcf5cc229d3b7f6d468948 (diff) | |
download | gitlab-ce-e467a11ec75386b2674a75222208ec1f97a7d992.tar.gz |
Feature/add language in repository to api
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index a0cb5aa0820..7ffe380e275 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -915,6 +915,29 @@ Example response: } ``` +## Languages + +Get languages used in a project with percentage value. + +``` +GET /projects/:id/languages +``` + +```bash +curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/5/languages" +``` + +Example response: + +```json +{ + "Ruby": 66.69, + "JavaScript": 22.98, + "HTML": 7.91, + "CoffeeScript": 2.42 +} +``` + ## Archive a project Archives the project if the user is either admin or the project owner of this project. This action is |