Skip to content

Commit 378d1de

Browse files
committed
feat(tasks): add query params to authentication list endpoint
1 parent 4081d8b commit 378d1de

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
type:
2+
name: type
3+
in: query
4+
description: Which type the returned authentication should have. Can be a list of string separated with commas.
5+
required: false
6+
style: form
7+
explode: false
8+
schema:
9+
type: array
10+
items:
11+
$ref: '#/authenticationTypeExtended'
12+
example: basic,oauth,none
13+
14+
platform:
15+
name: platform
16+
in: query
17+
description: Which platform the returned authentication should have. Can be a list of string separated with commas.
18+
required: false
19+
style: form
20+
explode: false
21+
schema:
22+
type: array
23+
items:
24+
$ref: './schemas/authentication.yml#/PlatformType'
25+
example: commercetools,bigcommerce
26+
27+
authenticationTypeExtended:
28+
oneOf:
29+
- $ref: './schemas/authentication.yml#/AuthenticationType'
30+
- $ref: './schemas/authentication.yml#/AuthenticationNone'

specs/ingestion/common/schemas/authentication.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ AuthenticationType:
9797
type: string
9898
enum: ['googleServiceAccount', 'basic', 'apiKey', 'oauth', 'algolia']
9999

100+
AuthenticationNone:
101+
type: string
102+
enum: ['none']
103+
100104
PlatformType:
101105
type: string
102106
enum: ['bigcommerce', 'commercetools']

specs/ingestion/paths/authentications/authentications.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ get:
77
parameters:
88
- $ref: '../../common/parameters.yml#/itemsPerPage'
99
- $ref: '../../common/parameters.yml#/page'
10+
- $ref: '../../common/authenticationParameters.yml#/type'
11+
- $ref: '../../common/authenticationParameters.yml#/platform'
1012
responses:
1113
'200':
1214
description: OK

0 commit comments

Comments
 (0)