From b71250ca0f1b9df4f728bdb322502e3544058ca5 Mon Sep 17 00:00:00 2001 From: sujay patel Date: Thu, 13 Jun 2019 01:33:21 +0530 Subject: Adding order by to list runner jobs api. --- doc/api/runners.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/api') 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: " "https://gitlab.example.com/api/v4/runners/1/jobs?status=running" -- cgit v1.2.3