diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-07-05 14:30:48 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-07-05 14:30:48 +0000 |
commit | 5ecb2db89e7fb53f95bf7613253dfbfb5705e4d9 (patch) | |
tree | 29abb18341f29c8431ac0c1ba181021a0bc77a59 /doc | |
parent | c9748d66d4313beacd449ab6efdf241cd740fa6d (diff) | |
parent | c7acdbf961b95565561209ea36e94a8e130e53bf (diff) | |
download | gitlab-ce-5ecb2db89e7fb53f95bf7613253dfbfb5705e4d9.tar.gz |
Merge branch '51794-add-ordering-to-runner-jobs-api' into 'master'
Adding order by to list runner jobs api.
Closes #51794
See merge request gitlab-org/gitlab-ce!29629
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/runners.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/runners.md b/doc/api/runners.md index 90e9fbff247..1318b9ca828 100644 --- a/doc/api/runners.md +++ b/doc/api/runners.md @@ -291,6 +291,8 @@ GET /runners/:id/jobs |-----------|---------|----------|---------------------| | `id` | integer | yes | The ID of a runner | | `status` | string | no | Status of the job; one of: `running`, `success`, `failed`, `canceled` | +| `order_by`| string | no | Order jobs by `id`. | +| `sort` | string | no | Sort jobs in `asc` or `desc` order (default: `desc`) | ``` curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/runners/1/jobs?status=running" |