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/api
diff options
context:
space:
mode:
authorsujay patel <sujaypatel1996@gmail.com>2019-06-12 23:03:21 +0300
committersujay <sujay.patel@caavo.com>2019-07-05 11:49:28 +0300
commitb71250ca0f1b9df4f728bdb322502e3544058ca5 (patch)
tree19aecdb71975d81b256c001cd29006ddb198f5a5 /doc/api
parent2fec78ead4ce46b9728be02693b6e50cce740726 (diff)
Adding order by to list runner jobs api.
Diffstat (limited to 'doc/api')
-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..425b9aeef1b 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` or `created_at` (default: 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"