diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-02-28 17:53:40 +0530 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-03-02 10:07:57 +0530 |
commit | 61baf3528d2f39ffc8f7aa07eddf3df0cec3508b (patch) | |
tree | d3830021e7dbe0b16071776e39578ffff2c3be1d /doc/api/milestones.md | |
parent | 7733f285aca97d444382a59eda0ea3e303539c26 (diff) | |
download | gitlab-ce-61baf3528d2f39ffc8f7aa07eddf3df0cec3508b.tar.gz |
Enable filtering milestones by search criteria in the API
- Also remove a redundant test
Diffstat (limited to 'doc/api/milestones.md')
-rw-r--r-- | doc/api/milestones.md | 6 |
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 |