Skip to content

Commit d6ad1ad

Browse files
committed
feat(tasks): add query params to task lists endpoint
1 parent 9ccebb4 commit d6ad1ad

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

specs/ingestion/common/parameters.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,57 @@ page:
6767
required: false
6868
schema:
6969
type: integer
70+
71+
enabled:
72+
name: enabled
73+
in: query
74+
description: If the return element should have is 'enabled' property set to true.
75+
required: false
76+
schema:
77+
type: boolean
78+
79+
action:
80+
name: action
81+
in: query
82+
description: Which action the return element should have. Can be a list of string separated with commas.
83+
required: false
84+
style: form
85+
explode: false
86+
schema:
87+
type: array
88+
items:
89+
type: string
90+
enum:
91+
- save
92+
- replace
93+
- delete
94+
example: save,replace
95+
96+
destinationIDQueryParam:
97+
name: destinationID
98+
in: query
99+
description: Which destinationID the return element should have. Can be a list of string separated with commas.
100+
required: false
101+
style: form
102+
explode: false
103+
schema:
104+
type: array
105+
items:
106+
type: string
107+
108+
triggerType:
109+
name: triggerType
110+
in: query
111+
description: Which trigger type the return element should have. Can be a list of string separated with commas.
112+
required: false
113+
style: form
114+
explode: false
115+
schema:
116+
type: array
117+
items:
118+
type: string
119+
enum:
120+
- on_demand
121+
- schedule
122+
- subscription
123+
example: on_demand,schedule

specs/ingestion/paths/tasks/tasks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ get:
77
parameters:
88
- $ref: '../../common/parameters.yml#/itemsPerPage'
99
- $ref: '../../common/parameters.yml#/page'
10+
- $ref: '../../common/parameters.yml#/action'
11+
- $ref: '../../common/parameters.yml#/enabled'
12+
- $ref: '../../common/parameters.yml#/destinationIDQueryParam'
13+
- $ref: '../../common/parameters.yml#/triggerType'
1014
responses:
1115
'200':
1216
description: OK

0 commit comments

Comments
 (0)