Skip to content

Commit da2e91d

Browse files
committed
Documentation of GET /api/v2/global-tasks
1 parent e902a42 commit da2e91d

4 files changed

Lines changed: 49 additions & 17 deletions

File tree

docs/api_reference/reference/iris.v2.1.0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ info:
8484
* Added GET /api/v2/alerts-filters/{identifier}
8585
* Added PUT /api/v2/alerts-filters/{identifier}
8686
* Added DELETE /api/v2/alerts-filters/{identifier}
87+
* Added GET /api/v2/global-tasks
8788
* Added POST /api/v2/global-tasks
8889
* Added GET /api/v2/global-tasks/{identifier}
8990
* Added PUT /api/v2/global-tasks/{identifier}

docs/api_reference/reference/v2.1.0/resources/api_v2_global-tasks.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
get:
2+
operationId: api_v2_global-tasks_get
3+
summary: List global tasks
4+
description: Returns a list of all global tasks
5+
tags:
6+
- Global tasks
7+
- Beta
8+
responses:
9+
'200':
10+
description: Paginated list of global tasks
11+
content:
12+
application/json:
13+
schema:
14+
$ref: ../schemas/GlobalTasks.yaml
15+
'403':
16+
$ref: ../responses/Forbidden.yaml
117
post:
218
operationId: api_v2_global-tasks_post
319
summary: Add a global task
Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
get:
2+
operationId: api_v2_manage_customers_get
3+
summary: List customers
4+
description: List customers
5+
tags:
6+
- Customers
7+
- Beta
8+
responses:
9+
'200':
10+
description: Paginated list of customers
11+
content:
12+
application/json:
13+
schema:
14+
$ref: ../schemas/Customers.yaml
15+
'403':
16+
$ref: ../responses/Forbidden.yaml
117
post:
218
operationId: api_v2_manage_customers_post
319
summary: Add a customer
@@ -21,20 +37,3 @@ post:
2137
$ref: ../responses/GenericError.yaml
2238
'403':
2339
$ref: ../responses/Forbidden.yaml
24-
get:
25-
operationId: api_v2_manage_customers_get
26-
summary: List customers
27-
description: List customers
28-
tags:
29-
- Customers
30-
- Beta
31-
responses:
32-
'200':
33-
description: Paginated list of customers
34-
content:
35-
application/json:
36-
schema:
37-
$ref: ../schemas/Customers.yaml
38-
'403':
39-
$ref: ../responses/Forbidden.yaml
40-
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
type: object
2+
properties:
3+
total:
4+
type: integer
5+
data:
6+
type: array
7+
items:
8+
$ref: ../schemas/GlobalTask.yaml
9+
last_page:
10+
type: integer
11+
current_page:
12+
type: integer
13+
next_page:
14+
type:
15+
- integer
16+
- 'null'

0 commit comments

Comments
 (0)