kuzzle 2.29.0 → 2.29.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/httpRoutes.js +0 -29
- package/lib/api/openapi/OpenApiManager.js +0 -32
- package/lib/api/openapi/openApiGenerator.js +1 -1
- package/lib/config/default.config.js +13 -0
- package/lib/core/backend/backendOpenApi.js +1 -13
- package/lib/kuzzle/kuzzle.js +60 -13
- package/lib/types/OpenApiDefinition.d.ts +1 -14
- package/lib/types/config/storageEngine/StorageEngineElasticsearchConfiguration.d.ts +20 -0
- package/package.json +1 -1
- package/lib/api/openapi/components/document/count.yaml +0 -47
- package/lib/api/openapi/components/document/create.yaml +0 -46
- package/lib/api/openapi/components/document/createOrReplace.yaml +0 -61
- package/lib/api/openapi/components/document/delete.yaml +0 -67
- package/lib/api/openapi/components/document/deleteByQuery.yaml +0 -90
- package/lib/api/openapi/components/document/exists.yaml +0 -35
- package/lib/api/openapi/components/document/get.yaml +0 -68
- package/lib/api/openapi/components/document/index.d.ts +0 -24
- package/lib/api/openapi/components/document/index.js +0 -65
- package/lib/api/openapi/components/document/mCreateOrReplace.yaml +0 -93
- package/lib/api/openapi/components/document/replace.yaml +0 -66
- package/lib/api/openapi/components/document/scroll.yaml +0 -49
- package/lib/api/openapi/components/document/update.yaml +0 -78
- package/lib/api/openapi/components/document/validate.yaml +0 -42
- package/lib/api/openapi/components/index.d.ts +0 -3
- package/lib/api/openapi/components/index.js +0 -23
- package/lib/api/openapi/components/payloads.yaml +0 -32
- package/lib/api/openapi/components/security/index.d.ts +0 -2
- package/lib/api/openapi/components/security/index.js +0 -10
- package/lib/api/openapi/components/security/upsertUser.yaml +0 -58
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
DocumentDeleteByQuery:
|
|
2
|
-
summary: "Deletes documents matching the provided search query."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: collection
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
required: true
|
|
16
|
-
- in: path
|
|
17
|
-
name: documentId
|
|
18
|
-
schema:
|
|
19
|
-
type: string
|
|
20
|
-
required: true
|
|
21
|
-
- in: path
|
|
22
|
-
name: refresh
|
|
23
|
-
schema:
|
|
24
|
-
type: string
|
|
25
|
-
description: " if set to wait_for, Kuzzle will not respond until the deletion has been indexed"
|
|
26
|
-
required: false
|
|
27
|
-
- in: path
|
|
28
|
-
name: source
|
|
29
|
-
schema:
|
|
30
|
-
type: boolean
|
|
31
|
-
description: "if set to true Kuzzle will return the deleted document body in the response."
|
|
32
|
-
required: false
|
|
33
|
-
- in: path
|
|
34
|
-
name: silent
|
|
35
|
-
schema:
|
|
36
|
-
type: boolean
|
|
37
|
-
description: "if set, then Kuzzle will not generate notifications. Available since 2.9.2"
|
|
38
|
-
required: false
|
|
39
|
-
- in: path
|
|
40
|
-
name: lang
|
|
41
|
-
schema:
|
|
42
|
-
type: string
|
|
43
|
-
description: "specify the query language to use. By default, it's elasticsearch but koncorde can also be used."
|
|
44
|
-
required: false
|
|
45
|
-
- name: body
|
|
46
|
-
in: "body"
|
|
47
|
-
description: "Deletes documents matching the provided search query."
|
|
48
|
-
required: true
|
|
49
|
-
schema:
|
|
50
|
-
$ref: "#/components/document/DocumentDeleteByQueryRequest"
|
|
51
|
-
responses:
|
|
52
|
-
200:
|
|
53
|
-
description: "Deletes documents matching the provided search query."
|
|
54
|
-
schema:
|
|
55
|
-
$ref: "#/components/document/DocumentDeleteByQueryResponse"
|
|
56
|
-
|
|
57
|
-
components:
|
|
58
|
-
schemas:
|
|
59
|
-
DocumentDeleteByQueryRequest:
|
|
60
|
-
allOf:
|
|
61
|
-
- type: "object"
|
|
62
|
-
properties:
|
|
63
|
-
body:
|
|
64
|
-
type: "object"
|
|
65
|
-
properties:
|
|
66
|
-
query:
|
|
67
|
-
type: "object"
|
|
68
|
-
description: "documents matching this search query will be deleted. Uses the ElasticSearch Query DSL syntax."
|
|
69
|
-
DocumentDeleteByQueryResponse:
|
|
70
|
-
allOf:
|
|
71
|
-
- $ref: "#/components/ResponsePayload"
|
|
72
|
-
- type: "object"
|
|
73
|
-
properties:
|
|
74
|
-
result:
|
|
75
|
-
type: "object"
|
|
76
|
-
properties:
|
|
77
|
-
documents:
|
|
78
|
-
type: array
|
|
79
|
-
items:
|
|
80
|
-
type: object
|
|
81
|
-
properties:
|
|
82
|
-
_id:
|
|
83
|
-
type: string
|
|
84
|
-
_source:
|
|
85
|
-
type: object
|
|
86
|
-
description: Document content, Present only if 'source' parameter is set to true.
|
|
87
|
-
ids:
|
|
88
|
-
type: "array"
|
|
89
|
-
items:
|
|
90
|
-
type: "string"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
DocumentExists:
|
|
2
|
-
summary: "Checks if a document exists."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: collection
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
required: true
|
|
16
|
-
- in: path
|
|
17
|
-
name: _id
|
|
18
|
-
schema:
|
|
19
|
-
type: integer
|
|
20
|
-
required: true
|
|
21
|
-
responses:
|
|
22
|
-
200:
|
|
23
|
-
description: "Checks if a document exists."
|
|
24
|
-
schema:
|
|
25
|
-
$ref: "#/components/document/DocumentExistsResponse"
|
|
26
|
-
|
|
27
|
-
components:
|
|
28
|
-
schemas:
|
|
29
|
-
DocumentExistsResponse:
|
|
30
|
-
allOf:
|
|
31
|
-
- $ref: "#/components/ResponsePayload"
|
|
32
|
-
- type: "object"
|
|
33
|
-
properties:
|
|
34
|
-
result:
|
|
35
|
-
type: "boolean"
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
DocumentGet:
|
|
2
|
-
summary: "Gets a document."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: collection
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
required: true
|
|
16
|
-
- in: path
|
|
17
|
-
name: _id
|
|
18
|
-
schema:
|
|
19
|
-
type: string
|
|
20
|
-
required: true
|
|
21
|
-
responses:
|
|
22
|
-
200:
|
|
23
|
-
description: "Gets a document."
|
|
24
|
-
schema:
|
|
25
|
-
$ref: "#/components/document/DocumentGetResponse"
|
|
26
|
-
|
|
27
|
-
components:
|
|
28
|
-
schemas:
|
|
29
|
-
DocumentGetResponse:
|
|
30
|
-
allOf:
|
|
31
|
-
- $ref: "#/components/ResponsePayload"
|
|
32
|
-
- type: "object"
|
|
33
|
-
properties:
|
|
34
|
-
result:
|
|
35
|
-
type: "object"
|
|
36
|
-
properties:
|
|
37
|
-
_id:
|
|
38
|
-
type: "string"
|
|
39
|
-
description: "documentId"
|
|
40
|
-
_version:
|
|
41
|
-
type: "integer"
|
|
42
|
-
_sources:
|
|
43
|
-
type: "object"
|
|
44
|
-
description: "document content"
|
|
45
|
-
properties:
|
|
46
|
-
name:
|
|
47
|
-
type: "object"
|
|
48
|
-
properties:
|
|
49
|
-
first:
|
|
50
|
-
type: "string"
|
|
51
|
-
last:
|
|
52
|
-
type: "string"
|
|
53
|
-
_kuzzle_info:
|
|
54
|
-
type: "object"
|
|
55
|
-
description: "Information about the Kuzzle documents"
|
|
56
|
-
properties:
|
|
57
|
-
author:
|
|
58
|
-
type: string
|
|
59
|
-
createdAt:
|
|
60
|
-
type: integer
|
|
61
|
-
updatedAt:
|
|
62
|
-
type:
|
|
63
|
-
- integer
|
|
64
|
-
- null
|
|
65
|
-
updater:
|
|
66
|
-
type:
|
|
67
|
-
- integer
|
|
68
|
-
- null
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const OpenApiDocumentCount: any;
|
|
2
|
-
export declare const OpenApiDocumentCountComponent: any;
|
|
3
|
-
export declare const OpenApiDocumentCreate: any;
|
|
4
|
-
export declare const OpenApiDocumentCreateComponent: any;
|
|
5
|
-
export declare const OpenApiDocumentCreateOrReplace: any;
|
|
6
|
-
export declare const OpenApiDocumentCreateOrReplaceComponent: any;
|
|
7
|
-
export declare const OpenApiDocumentGet: any;
|
|
8
|
-
export declare const OpenApiDocumentGetComponent: any;
|
|
9
|
-
export declare const OpenApiDocumentReplace: any;
|
|
10
|
-
export declare const OpenApiDocumentReplaceComponent: any;
|
|
11
|
-
export declare const OpenApiDocumentExists: any;
|
|
12
|
-
export declare const OpenApiDocumentExistsComponent: any;
|
|
13
|
-
export declare const OpenApiDocumentUpdate: any;
|
|
14
|
-
export declare const OpenApiDocumentUpdateComponent: any;
|
|
15
|
-
export declare const OpenApiDocumentScroll: any;
|
|
16
|
-
export declare const OpenApiDocumentScrollComponent: any;
|
|
17
|
-
export declare const OpenApiDocumentDelete: any;
|
|
18
|
-
export declare const OpenApiDocumentDeleteComponent: any;
|
|
19
|
-
export declare const OpenApiDocumentDeleteByQuery: any;
|
|
20
|
-
export declare const OpenApiDocumentDeleteByQueryComponent: any;
|
|
21
|
-
export declare const OpenApiDocumentValidate: any;
|
|
22
|
-
export declare const OpenApiDocumentValidateComponent: any;
|
|
23
|
-
export declare const OpenApiDocumentmCreateOrReplace: any;
|
|
24
|
-
export declare const OpenApiDocumentmCreateOrReplaceComponent: any;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OpenApiDocumentmCreateOrReplaceComponent = exports.OpenApiDocumentmCreateOrReplace = exports.OpenApiDocumentValidateComponent = exports.OpenApiDocumentValidate = exports.OpenApiDocumentDeleteByQueryComponent = exports.OpenApiDocumentDeleteByQuery = exports.OpenApiDocumentDeleteComponent = exports.OpenApiDocumentDelete = exports.OpenApiDocumentScrollComponent = exports.OpenApiDocumentScroll = exports.OpenApiDocumentUpdateComponent = exports.OpenApiDocumentUpdate = exports.OpenApiDocumentExistsComponent = exports.OpenApiDocumentExists = exports.OpenApiDocumentReplaceComponent = exports.OpenApiDocumentReplace = exports.OpenApiDocumentGetComponent = exports.OpenApiDocumentGet = exports.OpenApiDocumentCreateOrReplaceComponent = exports.OpenApiDocumentCreateOrReplace = exports.OpenApiDocumentCreateComponent = exports.OpenApiDocumentCreate = exports.OpenApiDocumentCountComponent = exports.OpenApiDocumentCount = void 0;
|
|
4
|
-
const readYamlFile_1 = require("../../../../util/readYamlFile");
|
|
5
|
-
// reading the description of the Count action in the controller document.
|
|
6
|
-
// The yaml objects are then stored in the variables below
|
|
7
|
-
const countObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/count.yaml");
|
|
8
|
-
exports.OpenApiDocumentCount = countObject.DocumentCount;
|
|
9
|
-
exports.OpenApiDocumentCountComponent = countObject.components.schemas;
|
|
10
|
-
// reading the description of the Create action in the controller document.
|
|
11
|
-
// The yaml objects are then stored in the variables below
|
|
12
|
-
const createObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/create.yaml");
|
|
13
|
-
exports.OpenApiDocumentCreate = createObject.DocumentCreate;
|
|
14
|
-
exports.OpenApiDocumentCreateComponent = createObject.components.schemas;
|
|
15
|
-
// reading the description of the CreateOrReplace action in the controller document.
|
|
16
|
-
// The yaml objects are then stored in the variables below
|
|
17
|
-
const createOrReplaceObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/createOrReplace.yaml");
|
|
18
|
-
exports.OpenApiDocumentCreateOrReplace = createOrReplaceObject.DocumentCreateOrReplace;
|
|
19
|
-
exports.OpenApiDocumentCreateOrReplaceComponent = createOrReplaceObject.components.schemas;
|
|
20
|
-
// reading the description of the Get action in the controller document.
|
|
21
|
-
// The yaml objects are then stored in the variables below
|
|
22
|
-
const getObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/get.yaml");
|
|
23
|
-
exports.OpenApiDocumentGet = getObject.DocumentGet;
|
|
24
|
-
exports.OpenApiDocumentGetComponent = getObject.components.schemas;
|
|
25
|
-
// reading the description of the Replace action in the controller document.
|
|
26
|
-
// The yaml objects are then stored in the variables below
|
|
27
|
-
const replaceObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/replace.yaml");
|
|
28
|
-
exports.OpenApiDocumentReplace = replaceObject.DocumentReplace;
|
|
29
|
-
exports.OpenApiDocumentReplaceComponent = replaceObject.components.schemas;
|
|
30
|
-
// reading the description of the Exists action in the controller document.
|
|
31
|
-
// The yaml objects are then stored in the variables below
|
|
32
|
-
const existsObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/exists.yaml");
|
|
33
|
-
exports.OpenApiDocumentExists = existsObject.DocumentExists;
|
|
34
|
-
exports.OpenApiDocumentExistsComponent = existsObject.components.schemas;
|
|
35
|
-
// reading the description of the Update action in the controller document.
|
|
36
|
-
// The yaml objects are then stored in the variables below
|
|
37
|
-
const updateObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/update.yaml");
|
|
38
|
-
exports.OpenApiDocumentUpdate = updateObject.DocumentUpdate;
|
|
39
|
-
exports.OpenApiDocumentUpdateComponent = updateObject.components.schemas;
|
|
40
|
-
// reading the description of the Scroll action in the controller document.
|
|
41
|
-
// The yaml objects are then stored in the variables below
|
|
42
|
-
const scrollObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/scroll.yaml");
|
|
43
|
-
exports.OpenApiDocumentScroll = scrollObject.DocumentScroll;
|
|
44
|
-
exports.OpenApiDocumentScrollComponent = scrollObject.components.schemas;
|
|
45
|
-
// reading the description of the Delete action in the controller document.
|
|
46
|
-
// The yaml objects are then stored in the variables below
|
|
47
|
-
const deleteObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/delete.yaml");
|
|
48
|
-
exports.OpenApiDocumentDelete = deleteObject.DocumentDelete;
|
|
49
|
-
exports.OpenApiDocumentDeleteComponent = deleteObject.components.schemas;
|
|
50
|
-
// reading the description of the DeleteByQuery action in the controller document.
|
|
51
|
-
// The yaml objects are then stored in the variables below
|
|
52
|
-
const deleteByQueryObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/deleteByQuery.yaml");
|
|
53
|
-
exports.OpenApiDocumentDeleteByQuery = deleteByQueryObject.DocumentDeleteByQuery;
|
|
54
|
-
exports.OpenApiDocumentDeleteByQueryComponent = deleteByQueryObject.components.schemas;
|
|
55
|
-
// reading the description of the Validate action in the controller document.
|
|
56
|
-
// The yaml objects are then stored in the variables below
|
|
57
|
-
const validateObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/validate.yaml");
|
|
58
|
-
exports.OpenApiDocumentValidate = validateObject.DocumentValidate;
|
|
59
|
-
exports.OpenApiDocumentValidateComponent = validateObject.components.schemas;
|
|
60
|
-
// reading the description of the mCreateOrReplace action in the controller document.
|
|
61
|
-
// The yaml objects are then stored in the variables below
|
|
62
|
-
const mCreateOrReplaceObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/mCreateOrReplace.yaml");
|
|
63
|
-
exports.OpenApiDocumentmCreateOrReplace = mCreateOrReplaceObject.DocumentmCreateOrReplace;
|
|
64
|
-
exports.OpenApiDocumentmCreateOrReplaceComponent = mCreateOrReplaceObject.components.schemas;
|
|
65
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
DocumentmCreateOrReplace:
|
|
2
|
-
summary: "Creates or replaces multiple documents."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: collection
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
required: true
|
|
16
|
-
- in: path
|
|
17
|
-
name: refresh
|
|
18
|
-
schema:
|
|
19
|
-
type: string
|
|
20
|
-
required: false
|
|
21
|
-
- in: path
|
|
22
|
-
name: silent
|
|
23
|
-
schema:
|
|
24
|
-
type: boolean
|
|
25
|
-
required: false
|
|
26
|
-
- in: path
|
|
27
|
-
name: _source
|
|
28
|
-
description: "if set to true, the response will include the document's source (default value true)"
|
|
29
|
-
schema:
|
|
30
|
-
type: boolean
|
|
31
|
-
required: false
|
|
32
|
-
- name: body
|
|
33
|
-
in: "body"
|
|
34
|
-
description: "Creates or replaces multiple documents."
|
|
35
|
-
required: true
|
|
36
|
-
schema:
|
|
37
|
-
$ref: "#/components/document/DocumentmCreateOrReplaceRequest"
|
|
38
|
-
responses:
|
|
39
|
-
200:
|
|
40
|
-
description: "Creates or replaces multiple documents."
|
|
41
|
-
schema:
|
|
42
|
-
$ref: "#/components/document/DocumentmCreateOrReplaceResponse"
|
|
43
|
-
|
|
44
|
-
components:
|
|
45
|
-
schemas:
|
|
46
|
-
DocumentmCreateOrReplaceRequest:
|
|
47
|
-
allOf:
|
|
48
|
-
- type: "object"
|
|
49
|
-
properties:
|
|
50
|
-
documents:
|
|
51
|
-
type: "array"
|
|
52
|
-
items:
|
|
53
|
-
type: "object"
|
|
54
|
-
properties:
|
|
55
|
-
_id:
|
|
56
|
-
type: "string"
|
|
57
|
-
body:
|
|
58
|
-
type: "object"
|
|
59
|
-
description: "document content"
|
|
60
|
-
DocumentmCreateOrReplaceResponse:
|
|
61
|
-
allOf:
|
|
62
|
-
- $ref: "#/components/ResponsePayload"
|
|
63
|
-
- type: "object"
|
|
64
|
-
properties:
|
|
65
|
-
result:
|
|
66
|
-
type: "object"
|
|
67
|
-
properties:
|
|
68
|
-
successes:
|
|
69
|
-
type: "array"
|
|
70
|
-
items:
|
|
71
|
-
type: "object"
|
|
72
|
-
properties:
|
|
73
|
-
_id:
|
|
74
|
-
type: "string"
|
|
75
|
-
_source:
|
|
76
|
-
type: "object"
|
|
77
|
-
description: "document content"
|
|
78
|
-
_version:
|
|
79
|
-
type: "integer"
|
|
80
|
-
created:
|
|
81
|
-
type: "boolean"
|
|
82
|
-
errors:
|
|
83
|
-
type: "array"
|
|
84
|
-
items:
|
|
85
|
-
type: "object"
|
|
86
|
-
properties:
|
|
87
|
-
document:
|
|
88
|
-
type: "object"
|
|
89
|
-
description: "document content"
|
|
90
|
-
status:
|
|
91
|
-
type: "integer"
|
|
92
|
-
reason:
|
|
93
|
-
type: "string"
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
DocumentReplace:
|
|
2
|
-
summary: "Replaces the content of an existing document."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: collection
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
required: true
|
|
16
|
-
- in: path
|
|
17
|
-
name: documentId
|
|
18
|
-
schema:
|
|
19
|
-
type: string
|
|
20
|
-
required: true
|
|
21
|
-
- in: path
|
|
22
|
-
name: refresh
|
|
23
|
-
schema:
|
|
24
|
-
type: string
|
|
25
|
-
description: " if set to wait_for, Kuzzle will not respond until the deletion has been indexed"
|
|
26
|
-
required: false
|
|
27
|
-
- in: path
|
|
28
|
-
name: silent
|
|
29
|
-
schema:
|
|
30
|
-
type: boolean
|
|
31
|
-
description: "if set, then Kuzzle will not generate notifications. Available since 2.9.2"
|
|
32
|
-
required: false
|
|
33
|
-
- name: body
|
|
34
|
-
in: "body"
|
|
35
|
-
description: "Replaces the content of an existing document."
|
|
36
|
-
required: true
|
|
37
|
-
schema:
|
|
38
|
-
$ref: "#/components/document/DocumentReplaceRequest"
|
|
39
|
-
responses:
|
|
40
|
-
200:
|
|
41
|
-
description: "Replaces the content of an existing document."
|
|
42
|
-
schema:
|
|
43
|
-
$ref: "#/components/document/DocumentReplaceResponse"
|
|
44
|
-
|
|
45
|
-
components:
|
|
46
|
-
schemas:
|
|
47
|
-
DocumentReplaceRequest:
|
|
48
|
-
allOf:
|
|
49
|
-
- type: "object"
|
|
50
|
-
description: "new document content"
|
|
51
|
-
DocumentReplaceResponse:
|
|
52
|
-
allOf:
|
|
53
|
-
- $ref: "#/components/ResponsePayload"
|
|
54
|
-
- type: "object"
|
|
55
|
-
properties:
|
|
56
|
-
result:
|
|
57
|
-
type: "object"
|
|
58
|
-
properties:
|
|
59
|
-
_id:
|
|
60
|
-
type: "string"
|
|
61
|
-
description: "documentId"
|
|
62
|
-
_version:
|
|
63
|
-
type: "integer"
|
|
64
|
-
_sources:
|
|
65
|
-
type: "object"
|
|
66
|
-
description: "new document content"
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
DocumentScroll:
|
|
2
|
-
summary: "Moves a search cursor forward."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: "scrollId"
|
|
8
|
-
schema:
|
|
9
|
-
type: integer
|
|
10
|
-
description: "cursor unique identifier, obtained by either a search or a scroll query"
|
|
11
|
-
required: true
|
|
12
|
-
- in: path
|
|
13
|
-
name: "scroll"
|
|
14
|
-
schema:
|
|
15
|
-
type: integer
|
|
16
|
-
description: "refresh the cursor duration, using the time to live syntax."
|
|
17
|
-
required: false
|
|
18
|
-
responses:
|
|
19
|
-
200:
|
|
20
|
-
description: "Moves a search cursor forward."
|
|
21
|
-
schema:
|
|
22
|
-
$ref: "#/components/document/DocumentScrollResponse"
|
|
23
|
-
|
|
24
|
-
components:
|
|
25
|
-
schemas:
|
|
26
|
-
DocumentScrollResponse:
|
|
27
|
-
allOf:
|
|
28
|
-
- $ref: "#/components/ResponsePayload"
|
|
29
|
-
- type: "object"
|
|
30
|
-
properties:
|
|
31
|
-
result:
|
|
32
|
-
type: "object"
|
|
33
|
-
properties:
|
|
34
|
-
scrollId:
|
|
35
|
-
type: "string"
|
|
36
|
-
total:
|
|
37
|
-
type: "integer"
|
|
38
|
-
hits:
|
|
39
|
-
type: "array"
|
|
40
|
-
items:
|
|
41
|
-
type: "object"
|
|
42
|
-
properties:
|
|
43
|
-
_id:
|
|
44
|
-
type: "string"
|
|
45
|
-
_score:
|
|
46
|
-
type: "integer"
|
|
47
|
-
_source:
|
|
48
|
-
type: "object"
|
|
49
|
-
description: "document content"
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
DocumentUpdate:
|
|
2
|
-
summary: "Updates a document content."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: collection
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
required: true
|
|
16
|
-
- in: path
|
|
17
|
-
name: _id
|
|
18
|
-
schema:
|
|
19
|
-
type: string
|
|
20
|
-
required: true
|
|
21
|
-
- in: path
|
|
22
|
-
name: refresh
|
|
23
|
-
schema:
|
|
24
|
-
type: string
|
|
25
|
-
description: "if set to wait_for, Kuzzle will not respond until the deletion has been indexed"
|
|
26
|
-
required: false
|
|
27
|
-
- in: path
|
|
28
|
-
name: silent
|
|
29
|
-
schema:
|
|
30
|
-
type: boolean
|
|
31
|
-
description: "if set, then Kuzzle will not generate notifications. Available since 2.9.2"
|
|
32
|
-
required: false
|
|
33
|
-
- in: path
|
|
34
|
-
name: source
|
|
35
|
-
schema:
|
|
36
|
-
type: boolean
|
|
37
|
-
required: false
|
|
38
|
-
description: "if set to true Kuzzle will return the entire updated document body in the response."
|
|
39
|
-
- in: path
|
|
40
|
-
name: retryOnConflict
|
|
41
|
-
schema:
|
|
42
|
-
type: integer
|
|
43
|
-
description: "conflicts may occur if the same document gets updated multiple times within a short timespan, in a database cluster. You can set the retryOnConflict optional argument (with a retry count), to tell Kuzzle to retry the failing updates the specified amount of times before rejecting the request with an error."
|
|
44
|
-
required: false
|
|
45
|
-
- name: body
|
|
46
|
-
in: "body"
|
|
47
|
-
description: "Updates a document content."
|
|
48
|
-
required: true
|
|
49
|
-
schema:
|
|
50
|
-
$ref: "#/components/document/DocumentUpdateRequest"
|
|
51
|
-
responses:
|
|
52
|
-
200:
|
|
53
|
-
description: "Updates a document content."
|
|
54
|
-
schema:
|
|
55
|
-
$ref: "#/components/document/DocumentUpdateResponse"
|
|
56
|
-
|
|
57
|
-
components:
|
|
58
|
-
schemas:
|
|
59
|
-
DocumentUpdateRequest:
|
|
60
|
-
allOf:
|
|
61
|
-
- type: "object"
|
|
62
|
-
description: "document changes"
|
|
63
|
-
DocumentUpdateResponse:
|
|
64
|
-
allOf:
|
|
65
|
-
- $ref: "#/components/ResponsePayload"
|
|
66
|
-
- type: "object"
|
|
67
|
-
properties:
|
|
68
|
-
result:
|
|
69
|
-
type: "object"
|
|
70
|
-
properties:
|
|
71
|
-
_id:
|
|
72
|
-
type: "string"
|
|
73
|
-
description: "documentId"
|
|
74
|
-
_version:
|
|
75
|
-
type: "integer"
|
|
76
|
-
_source:
|
|
77
|
-
type: string
|
|
78
|
-
description: "partial or entire document"
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
DocumentValidate:
|
|
2
|
-
summary: "Validates data against existing validation rules."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
- in: path
|
|
11
|
-
name: collection
|
|
12
|
-
schema:
|
|
13
|
-
type: string
|
|
14
|
-
- in: body
|
|
15
|
-
name: "body"
|
|
16
|
-
description: "Document content to check."
|
|
17
|
-
required: true
|
|
18
|
-
schema:
|
|
19
|
-
$ref: "#/components/document/DocumentValidateRequest"
|
|
20
|
-
responses:
|
|
21
|
-
200:
|
|
22
|
-
description: "Returns the document validation status."
|
|
23
|
-
schema:
|
|
24
|
-
$ref: "#/components/document/DocumentValidateResponse"
|
|
25
|
-
|
|
26
|
-
components:
|
|
27
|
-
schemas:
|
|
28
|
-
DocumentValidateRequest:
|
|
29
|
-
allOf:
|
|
30
|
-
- type: "object"
|
|
31
|
-
description: "document content"
|
|
32
|
-
|
|
33
|
-
DocumentValidateResponse:
|
|
34
|
-
allOf:
|
|
35
|
-
- $ref: "#/components/ResponsePayload"
|
|
36
|
-
- type: "object"
|
|
37
|
-
properties:
|
|
38
|
-
result:
|
|
39
|
-
type: "object"
|
|
40
|
-
properties:
|
|
41
|
-
valid:
|
|
42
|
-
type: "boolean"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.OpenApiPayloadsDefinitions = void 0;
|
|
18
|
-
const readYamlFile_1 = require("../../../util/readYamlFile");
|
|
19
|
-
__exportStar(require("./document"), exports);
|
|
20
|
-
__exportStar(require("./security"), exports);
|
|
21
|
-
// Document definitions (reusable object for KuzzleRequest and KuzzleResponse)
|
|
22
|
-
exports.OpenApiPayloadsDefinitions = (0, readYamlFile_1.readYamlFile)(__dirname + "/payloads.yaml").definitions;
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
definitions:
|
|
2
|
-
RequestPayload:
|
|
3
|
-
type: "object"
|
|
4
|
-
properties:
|
|
5
|
-
controller:
|
|
6
|
-
type: "string"
|
|
7
|
-
enum: "document"
|
|
8
|
-
action:
|
|
9
|
-
type: "string"
|
|
10
|
-
enum: "foo"
|
|
11
|
-
index:
|
|
12
|
-
type: "string"
|
|
13
|
-
collection:
|
|
14
|
-
type: "string"
|
|
15
|
-
ResponsePayload:
|
|
16
|
-
type: "object"
|
|
17
|
-
properties:
|
|
18
|
-
status:
|
|
19
|
-
type: "integer"
|
|
20
|
-
error:
|
|
21
|
-
type: "object"
|
|
22
|
-
index:
|
|
23
|
-
type: "string"
|
|
24
|
-
collection:
|
|
25
|
-
type: "string"
|
|
26
|
-
controller:
|
|
27
|
-
type: "string"
|
|
28
|
-
action:
|
|
29
|
-
type: "string"
|
|
30
|
-
requestId:
|
|
31
|
-
type: "integer"
|
|
32
|
-
description: "unique request identifie"
|