Clarify search parameter in the branches API docs

This commit is contained in:
Lukas Eipert 2019-01-27 21:36:23 +01:00
parent 143975841c
commit 3d1aff8796
No known key found for this signature in database
GPG Key ID: 148BEA37CB35B2AC
1 changed files with 4 additions and 5 deletions

View File

@ -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