Skip to content

Commit c09caf9

Browse files
authored
Merge pull request #100 from dfir-iris/api_v2_paginated_global_tasks
Api v2 paginated global tasks
2 parents b379bca + f5c2864 commit c09caf9

5 files changed

Lines changed: 52 additions & 18 deletions

File tree

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

Lines changed: 2 additions & 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}
@@ -142,6 +143,7 @@ info:
142143
* Deprecated POST /manage/customers/update/{customer_id}
143144
* Deprecated POST /manage/customers/delete/{customer_id}
144145
* Deprecated POST /global/tasks/add
146+
* Deprecated GET /global/tasks/list
145147
* Deprecated POST /global/tasks/update/{task_id}
146148
* Deprecated POST /global/tasks/delete/{task_id}
147149
* Added documentation of missing GET /manage/severities/list

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-

docs/api_reference/reference/v2.1.0/resources/global_tasks_list.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
get:
22
summary: List global tasks
3+
description: This endpoint is deprecated. Use [GET /api/v2/global-tasks](#tag/Global-tasks/operation/api_v2_global-tasks_get) instead.
4+
deprecated: true
35
tags:
46
- Global tasks
57
responses:
@@ -231,4 +233,3 @@ get:
231233
operationId: get-global-tasks-list
232234
security:
233235
- Bearer <bearer>: []
234-
description: Returns a list of all global tasks
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)