-
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(clients): add
saveObjects
, deleteObjects
and `partialUpdateO…
…bjects` helpers (#3180)
- Loading branch information
Showing
16 changed files
with
713 additions
and
43 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
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,35 @@ | ||
method: | ||
post: | ||
x-helper: true | ||
tags: | ||
- Records | ||
operationId: deleteObjects | ||
summary: Deletes every records for the given objectIDs | ||
description: | | ||
Helper: Deletes every records for the given objectIDs. The `chunkedBatch` helper is used under the hood, which creates a `batch` requests with at most 1000 objectIDs in it. | ||
parameters: | ||
- in: query | ||
name: indexName | ||
description: The `indexName` to delete `objectIDs` from. | ||
required: true | ||
schema: | ||
type: string | ||
- in: query | ||
name: objectIDs | ||
description: The objectIDs to delete. | ||
required: true | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '../paths/objects/common/schemas.yml#/batchResponse' | ||
'400': | ||
$ref: '../../common/responses/IndexNotFound.yml' |
Oops, something went wrong.
7a90e45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://api-clients-automation.netlify.app as production
🚀 Deployed on https://667bf54405f2362721b7a515--api-clients-automation.netlify.app