summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-19 12:13:14 +0000
committerRémy Coutable <remy@rymai.me>2017-07-19 12:13:14 +0000
commit312ed3f9a458ba76a738cf75da8e07954cedecdd (patch)
treec141605d8a895ae7ff6bb375e9b09b14d8cd658a
parent0160aeed0ab35b50c3e3cc55ffc9acb4ebd8c132 (diff)
parentace95b15401bbd9231558f9ba1af0e4fe742b513 (diff)
downloadgitlab-ce-312ed3f9a458ba76a738cf75da8e07954cedecdd.tar.gz
Merge branch 'patch-24' into 'master'
Update projects.md. Fix Search project by name format and added a curl example. See merge request !12964
-rw-r--r--doc/api/projects.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 0d892c74d00..61ae89a64c0 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -1257,17 +1257,21 @@ endpoint can be accessed without authentication if the project is publicly
accessible.
```
-GET /projects/search/:query
+GET /projects
```
Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
-| `query` | string | yes | A string contained in the project name |
+| `search` | string | yes | A string contained in the project name |
| `order_by` | string | no | Return requests ordered by `id`, `name`, `created_at` or `last_activity_at` fields |
| `sort` | string | no | Return requests sorted in `asc` or `desc` order |
+```bash
+curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects?search=test
+```
+
## Start the Housekeeping task for a Project
>**Note:** This feature was introduced in GitLab 9.0