Commit 312ed3f9 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'patch-24' into 'master'

Update projects.md. Fix Search project by name format and added a curl example.

See merge request !12964
parents 0160aeed ace95b15
...@@ -1257,17 +1257,21 @@ endpoint can be accessed without authentication if the project is publicly ...@@ -1257,17 +1257,21 @@ endpoint can be accessed without authentication if the project is publicly
accessible. accessible.
``` ```
GET /projects/search/:query GET /projects
``` ```
Parameters: Parameters:
| Attribute | Type | Required | Description | | 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 | | `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 | | `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 ## Start the Housekeeping task for a Project
>**Note:** This feature was introduced in GitLab 9.0 >**Note:** This feature was introduced in GitLab 9.0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment