diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-25 19:39:16 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-25 19:39:16 +0200 |
commit | a7aacb4dc4d2cb3875db22dee830553462100a20 (patch) | |
tree | 892278f1ce71d632269ce0a9e24ee9b7f7c093c3 /doc | |
parent | 5fc3d746d22ffafb881187a7ce5280d973a1cad4 (diff) | |
parent | 19938156d89ea980596fd5b1d72856f3defb228a (diff) | |
download | gitlab-ce-a7aacb4dc4d2cb3875db22dee830553462100a20.tar.gz |
Merge pull request #6586 from abner/master
added api method to return labels of a given project
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/projects.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 6e82ddd9903..54618d7c045 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -621,3 +621,29 @@ Parameters: + query (required) - A string contained in the project name + per_page (optional) - number of projects to return per page + page (optional) - the page to retrieve + + +## Labels + +### List project labels + +Get a list of project labels. + +``` +GET /projects/:id/labels +``` + +Parameters: + ++ `id` (required) - The ID or NAMESPACE/PROJECT_NAME of a project + +```json +[ + { + "name":"featute" + }, + { + "name": "bug" + } +] +``` |