Skip to content

Commit 46fa260

Browse files
committed
feat(tasks): put task parameters in their own file
1 parent e01d660 commit 46fa260

File tree

3 files changed

+49
-50
lines changed

3 files changed

+49
-50
lines changed

specs/ingestion/common/parameters.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -67,49 +67,3 @@ 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-
$ref: './schemas/task.yml#/ActionType'
90-
example: save,replace
91-
92-
destinationIDQueryParam:
93-
name: destinationID
94-
in: query
95-
description: Which destinationID the return element should have. Can be a list of string separated with commas.
96-
required: false
97-
style: form
98-
explode: false
99-
schema:
100-
type: array
101-
items:
102-
type: string
103-
104-
triggerType:
105-
name: triggerType
106-
in: query
107-
description: Which trigger type the return element should have. Can be a list of string separated with commas.
108-
required: false
109-
style: form
110-
explode: false
111-
schema:
112-
type: array
113-
items:
114-
$ref: './schemas/task.yml#/TriggerType'
115-
example: on_demand,schedule
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
enabled:
2+
name: enabled
3+
in: query
4+
description: If the returned task should have its 'enabled' property set to true.
5+
required: false
6+
schema:
7+
type: boolean
8+
9+
action:
10+
name: action
11+
in: query
12+
description: Which action the returned task should have. Can be a list of string separated with commas.
13+
required: false
14+
style: form
15+
explode: false
16+
schema:
17+
type: array
18+
items:
19+
$ref: './schemas/task.yml#/ActionType'
20+
example: save,replace
21+
22+
destinationID:
23+
name: destinationID
24+
in: query
25+
description: Which destinationID the returned task should have. Can be a list of string separated with commas.
26+
required: false
27+
style: form
28+
explode: false
29+
schema:
30+
type: array
31+
items:
32+
type: string
33+
34+
triggerType:
35+
name: triggerType
36+
in: query
37+
description: Which trigger type the returned task should have. Can be a list of string separated with commas.
38+
required: false
39+
style: form
40+
explode: false
41+
schema:
42+
type: array
43+
items:
44+
$ref: './schemas/task.yml#/TriggerType'
45+
example: on_demand,schedule

specs/ingestion/paths/tasks/tasks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +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'
10+
- $ref: '../../common/taskParameters.yml#/action'
11+
- $ref: '../../common/taskParameters.yml#/enabled'
12+
- $ref: '../../common/taskParameters.yml#/destinationID'
13+
- $ref: '../../common/taskParameters.yml#/triggerType'
1414
responses:
1515
'200':
1616
description: OK

0 commit comments

Comments
 (0)