Commit 19938156d89ea980596fd5b1d72856f3defb228a

Authored by Ábner Oliveira
1 parent e153469f

documentation for api method which get labels of a project

Showing 1 changed file with 26 additions and 0 deletions   Show diff stats
doc/api/projects.md
@@ -621,3 +621,29 @@ Parameters: @@ -621,3 +621,29 @@ Parameters:
621 + query (required) - A string contained in the project name 621 + query (required) - A string contained in the project name
622 + per_page (optional) - number of projects to return per page 622 + per_page (optional) - number of projects to return per page
623 + page (optional) - the page to retrieve 623 + page (optional) - the page to retrieve
  624 +
  625 +
  626 +## Labels
  627 +
  628 +### List project labels
  629 +
  630 +Get a list of project labels.
  631 +
  632 +```
  633 +GET /projects/:id/labels
  634 +```
  635 +
  636 +Parameters:
  637 +
  638 ++ `id` (required) - The ID or NAMESPACE/PROJECT_NAME of a project
  639 +
  640 +```json
  641 +[
  642 + {
  643 + "name":"featute"
  644 + },
  645 + {
  646 + "name": "bug"
  647 + }
  648 +]
  649 +```