summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2019-01-27 21:36:23 +0100
committerLukas Eipert <leipert@gitlab.com>2019-01-30 15:37:55 +0100
commit3d1aff8796682c83f4f47b2657b9e5f424af2d0a (patch)
tree46ee2af7a062c9b44bcbe51bfa1cbfb8e9622703
parent143975841cc47ce775e6b0d8c58517953cfc92fa (diff)
downloadgitlab-ce-docs-branches-api-search.tar.gz
Clarify search parameter in the branches API docsdocs-branches-api-search
-rw-r--r--doc/api/branches.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md
index 8d5f333ba77..62468b6e917 100644
--- a/doc/api/branches.md
+++ b/doc/api/branches.md
@@ -18,11 +18,10 @@ GET /projects/:id/repository/branches
Parameters:
-| 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. |
-| `search` | string | no | Return list of branches matching the search criteria. |
-
+| 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.|
+| `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:
```sh