Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-07-05 17:30:48 +0300
committerLin Jen-Shin <godfat@godfat.org>2019-07-05 17:30:48 +0300
commit5ecb2db89e7fb53f95bf7613253dfbfb5705e4d9 (patch)
tree29abb18341f29c8431ac0c1ba181021a0bc77a59 /doc
parentc9748d66d4313beacd449ab6efdf241cd740fa6d (diff)
parentc7acdbf961b95565561209ea36e94a8e130e53bf (diff)
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.md2
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"