Commit c397cf67 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-branches-api-search' into 'master'

Clarify search parameter in the branches API docs

See merge request gitlab-org/gitlab-ce!24703
parents 2cbf33d2 3d1aff87
...@@ -18,11 +18,10 @@ GET /projects/:id/repository/branches ...@@ -18,11 +18,10 @@ GET /projects/:id/repository/branches
Parameters: Parameters:
| Attribute | Type | Required | Description | | Attribute | Type | Required | Description |
|:----------|:---------------|:---------|:-------------------------------------------------------------------------------------------------------------| |:----------|:---------------|:---------|:------------|
| `id` | integer/string | yes | ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user. | | `id` | integer/string | yes | ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user.|
| `search` | string | no | Return list of branches matching the search criteria. | | `search` | string | no | Return list of branches containing the search string. You can use `^term` and `term$` to find branches that begin and end with `term` respectively.|
Example request: Example request:
```sh ```sh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment