-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(specs): add v2 endpoints for ingestion (#3416)
- Loading branch information
Showing
13 changed files
with
156 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
batchWriteParams: | ||
title: batchWriteParams | ||
description: Batch parameters. | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
requests: | ||
type: array | ||
items: | ||
title: batchRequest | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
action: | ||
$ref: '#/action' | ||
body: | ||
type: object | ||
description: Operation arguments (varies with specified `action`). | ||
example: | ||
name: Betty Jane McCamey | ||
company: Vita Foods Inc. | ||
email: betty@mccamey.com | ||
required: | ||
- action | ||
- body | ||
required: | ||
- requests | ||
example: | ||
batch: | ||
summary: Batch indexing request | ||
value: | ||
requests: | ||
- action: addObject | ||
body: | ||
name: Betty Jane McCamey | ||
company: Vita Foods Inc. | ||
email: betty@mccamey.com | ||
- action: addObject | ||
body: | ||
name: Gayla geimer | ||
company: Ortman McCain Co. | ||
email: gayla@geimer.com | ||
|
||
action: | ||
type: string | ||
enum: | ||
- addObject | ||
- updateObject | ||
- partialUpdateObject | ||
- partialUpdateObjectNoCreate | ||
- deleteObject | ||
- delete | ||
- clear | ||
description: Type of indexing operation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
post: | ||
tags: | ||
- tasks | ||
summary: Push a `batch` request payload through the Pipeline | ||
description: Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints. | ||
operationId: pushTask | ||
x-acl: | ||
- addObject | ||
- deleteIndex | ||
- editSettings | ||
parameters: | ||
- $ref: '../../../common/parameters.yml#/pathTaskID' | ||
requestBody: | ||
description: Request body of a Search API `batch` request that will be pushed in the Connectors pipeline. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../../../common/schemas/Batch.yml#/batchWriteParams' | ||
required: true | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../../common/schemas/run.yml#/RunResponse' | ||
'400': | ||
$ref: '../../../../common/responses/BadRequest.yml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[ | ||
{ | ||
"parameters": { | ||
"taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f", | ||
"batchWriteParams": { | ||
"requests": [ | ||
{ | ||
"action": "addObject", | ||
"body": { | ||
"key": "bar", | ||
"foo": "1" | ||
} | ||
}, | ||
{ | ||
"action": "addObject", | ||
"body": { | ||
"key": "baz", | ||
"foo": "2" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"request": { | ||
"path": "/2/tasks/6c02aeb1-775e-418e-870b-1faccd4b2c0f/push", | ||
"method": "POST", | ||
"body": { | ||
"requests": [ | ||
{ | ||
"action": "addObject", | ||
"body": { | ||
"key": "bar", | ||
"foo": "1" | ||
} | ||
}, | ||
{ | ||
"action": "addObject", | ||
"body": { | ||
"key": "baz", | ||
"foo": "2" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |