Clarify search parameter in the branches API docs
This commit is contained in:
parent
143975841c
commit
3d1aff8796
1 changed files with 4 additions and 5 deletions
|
@ -19,10 +19,9 @@ 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
|
||||||
|
|
Loading…
Reference in a new issue