Merge branch 'patch-71' into 'master'

Add `--globoff` flag to the curl command for Jobs API.

See merge request gitlab-org/gitlab-ce!30118
This commit is contained in:
Evan Read 2019-07-03 01:39:20 +00:00
commit 8cbe2027d0
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ GET /projects/:id/jobs
| `scope` | string **or** array of strings | no | Scope of jobs to show. Either one of or an array of the following: `created`, `pending`, `running`, `failed`, `success`, `canceled`, `skipped`, or `manual`. All jobs are returned if `scope` is not provided. |
```sh
curl --header "PRIVATE-TOKEN: <your_access_token>" 'https://gitlab.example.com/api/v4/projects/1/jobs?scope[]=pending&scope[]=running'
curl --globoff --header "PRIVATE-TOKEN: <your_access_token>" 'https://gitlab.example.com/api/v4/projects/1/jobs?scope[]=pending&scope[]=running'
```
Example of response