Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-02-28 15:23:40 +0300
committerMark Fletcher <mark@gitlab.com>2017-03-02 07:37:57 +0300
commit61baf3528d2f39ffc8f7aa07eddf3df0cec3508b (patch)
treed3830021e7dbe0b16071776e39578ffff2c3be1d /doc
parent7733f285aca97d444382a59eda0ea3e303539c26 (diff)
Enable filtering milestones by search criteria in the API
- Also remove a redundant test
Diffstat (limited to 'doc')
-rw-r--r--doc/api/milestones.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/milestones.md b/doc/api/milestones.md
index bf7dcc008e9..1d6749201e2 100644
--- a/doc/api/milestones.md
+++ b/doc/api/milestones.md
@@ -10,6 +10,7 @@ GET /projects/:id/milestones?iid=42
GET /projects/:id/milestones?iid[]=42&iid[]=43
GET /projects/:id/milestones?state=active
GET /projects/:id/milestones?state=closed
+GET /projects/:id/milestones?search=version
```
Parameters:
@@ -18,7 +19,8 @@ Parameters:
| --------- | ---- | -------- | ----------- |
| `id` | integer | yes | The ID of a project |
| `iid` | Array[integer] | optional | Return only the milestone having the given `iid` |
-| `state` | string | optional | Return only `active` or `closed` milestones` |
+| `state` | string | optional | Return only `active` or `closed` milestones` |
+| `search` | string | optional | Return only milestones with a title or description matching the provided string |
```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/milestones
@@ -115,4 +117,4 @@ GET /projects/:id/milestones/:milestone_id/merge_requests
Parameters:
- `id` (required) - The ID of a project
-- `milestone_id` (required) - The ID of a project milestone \ No newline at end of file
+- `milestone_id` (required) - The ID of a project milestone