Skip to content

Commit 5845069

Browse files
committed
review
1 parent 69fdc5f commit 5845069

File tree

10 files changed

+53
-29
lines changed

10 files changed

+53
-29
lines changed

specs/ingestion/common/schemas/authentication.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Authentication:
1313
input:
1414
$ref: '#/AuthInput'
1515
createdAt:
16-
type: string
16+
$ref: './common.yml#/createdAt'
1717
updatedAt:
18-
type: string
18+
$ref: './common.yml#/updatedAt'
1919
required:
2020
- authenticationID
2121
- type
@@ -49,7 +49,7 @@ AuthenticationCreateResponse:
4949
name:
5050
type: string
5151
createdAt:
52-
type: string
52+
$ref: './common.yml#/createdAt'
5353
required:
5454
- authenticationID
5555
- name
@@ -77,15 +77,15 @@ AuthenticationUpdateResponse:
7777
name:
7878
type: string
7979
updatedAt:
80-
type: string
80+
$ref: './common.yml#/updatedAt'
8181
required:
8282
- authenticationID
8383
- name
8484
- updatedAt
8585

8686
AuthenticationType:
8787
type: string
88-
enum: ['google_service_account', 'basic', 'apiKey', 'oauth', 'algolia']
88+
enum: ['googleServiceAccount', 'basic', 'apiKey', 'oauth', 'algolia']
8989

9090
PlatformType:
9191
type: string
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
createdAt:
2+
type: string
3+
description: Date of creation (RFC3339 format).
4+
5+
updatedAt:
6+
type: string
7+
description: Date of last update (RFC3339 format).
8+
9+
DeleteResponse:
10+
type: object
11+
properties:
12+
deletedAt:
13+
type: string
14+
description: Date of deletion (RFC3339 format)
15+
required:
16+
- deletedAt

specs/ingestion/common/schemas/destination.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Destination:
1111
input:
1212
$ref: '#/DestinationInput'
1313
createdAt:
14-
type: string
14+
$ref: './common.yml#/createdAt'
1515
updatedAt:
16-
type: string
16+
$ref: './common.yml#/updatedAt'
1717
authenticationID:
1818
type: string
1919
required:
@@ -51,7 +51,7 @@ DestinationCreateResponse:
5151
name:
5252
type: string
5353
createdAt:
54-
type: string
54+
$ref: './common.yml#/createdAt'
5555
required:
5656
- destinationID
5757
- name
@@ -79,7 +79,7 @@ DestinationUpdateResponse:
7979
name:
8080
type: string
8181
updatedAt:
82-
type: string
82+
$ref: './common.yml#/updatedAt'
8383
required:
8484
- destinationID
8585
- name

specs/ingestion/common/schemas/source.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Source:
1313
authenticationID:
1414
type: string
1515
createdAt:
16-
type: string
16+
$ref: './common.yml#/createdAt'
1717
updatedAt:
18-
type: string
18+
$ref: './common.yml#/updatedAt'
1919
required:
2020
- sourceID
2121
- type
@@ -51,7 +51,7 @@ SourceCreateResponse:
5151
name:
5252
type: string
5353
createdAt:
54-
type: string
54+
$ref: './common.yml#/createdAt'
5555
required:
5656
- sourceID
5757
- name
@@ -79,22 +79,15 @@ SourceUpdateResponse:
7979
name:
8080
type: string
8181
updatedAt:
82-
type: string
82+
$ref: './common.yml#/updatedAt'
8383
required:
8484
- sourceID
8585
- name
8686
- updatedAt
8787

8888
SourceType:
8989
type: string
90-
enum:
91-
- 'csv'
92-
- 'json'
93-
- 'bigquery'
94-
- 'bigquery_ga4'
95-
- 'bigquery_ua'
96-
- 'bigcommerce'
97-
- 'commercetools'
90+
enum: ['bigcommerce', 'commercetools']
9891

9992
SourceCommercetools:
10093
type: object
@@ -117,7 +110,7 @@ SourceBigCommerce:
117110
type: object
118111
additionalProperties: false
119112
properties:
120-
store_hash:
113+
storeHash:
121114
type: string
122115
required:
123116
- store_hash

specs/ingestion/common/schemas/task.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Task:
2323
nextRun:
2424
type: string
2525
createdAt:
26-
type: string
26+
$ref: './common.yml#/createdAt'
2727
updatedAt:
28-
type: string
28+
$ref: './common.yml#/updatedAt'
2929
required:
3030
- taskID
3131
- sourceID
@@ -64,7 +64,7 @@ TaskCreateResponse:
6464
taskID:
6565
type: string
6666
createdAt:
67-
type: string
67+
$ref: './common.yml#/createdAt'
6868
required:
6969
- taskID
7070
- createdAt
@@ -87,7 +87,7 @@ TaskUpdateResponse:
8787
taskID:
8888
type: string
8989
updatedAt:
90-
type: string
90+
$ref: './common.yml#/updatedAt'
9191
required:
9292
- taskID
9393
- updatedAt

specs/ingestion/paths/authentications/authenticationID.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ delete:
5151
responses:
5252
'204':
5353
description: OK
54+
content:
55+
application/json:
56+
schema:
57+
$ref: '../../common/schemas/common.yml#/DeleteResponse'
5458
'400':
5559
$ref: '../../../common/responses/BadRequest.yml'

specs/ingestion/paths/destinations/destinationID.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ delete:
5151
responses:
5252
'204':
5353
description: OK
54+
content:
55+
application/json:
56+
schema:
57+
$ref: '../../common/schemas/common.yml#/DeleteResponse'
5458
'400':
5559
$ref: '../../../common/responses/BadRequest.yml'

specs/ingestion/paths/sources/sourceID.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ delete:
5151
responses:
5252
'204':
5353
description: OK
54+
content:
55+
application/json:
56+
schema:
57+
$ref: '../../common/schemas/common.yml#/DeleteResponse'
5458
'400':
5559
$ref: '../../../common/responses/BadRequest.yml'

specs/ingestion/paths/tasks/taskID.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ delete:
5151
responses:
5252
'204':
5353
description: OK
54+
content:
55+
application/json:
56+
schema:
57+
$ref: '../../common/schemas/common.yml#/DeleteResponse'
5458
'400':
5559
$ref: '../../../common/responses/BadRequest.yml'

specs/ingestion/spec.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
openapi: 3.0.2
22
info:
33
title: Ingestion API
4-
description: >-
5-
[Documentation](https://docs.google.com/document/d/13UnFi4Osfw4vOJr5iN4P4RJDZdslpFs4OgM4F1VBwQc/edit#heading=h.kp12qj1w1lig)
4+
description: API powering the Data Ingestion feature of Algolia
65
version: '1.0'
76
components:
87
securitySchemes:
@@ -32,7 +31,7 @@ tags:
3231
description: Sources describe the platform informations.
3332
- name: tasks
3433
x-displayName: Tasks
35-
description: Tasks refers to all type on Ingestion we can do (Reindex, On demand update, ...).
34+
description: Tasks refers to all type of Ingestion we can do (Reindex, On demand update, ...).
3635
paths:
3736
/1/authentications:
3837
$ref: 'paths/authentications/authentications.yml'

0 commit comments

Comments
 (0)