@digipair/skill-mongodb 0.25.6 → 0.27.0
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/index.esm.js +5 -5
- package/package.json +1 -1
- package/schema.fr.json +349 -0
- package/schema.json +52 -52
package/index.esm.js
CHANGED
|
@@ -23531,14 +23531,14 @@ function indent(str, spaces) {
|
|
|
23531
23531
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23532
23532
|
// match is required
|
|
23533
23533
|
if (!match) {
|
|
23534
|
-
return
|
|
23534
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23535
23535
|
v: nextMatch1
|
|
23536
23536
|
};
|
|
23537
23537
|
}
|
|
23538
23538
|
var token = match.token, offset = match.offset;
|
|
23539
23539
|
i1 += offset;
|
|
23540
23540
|
if (token === " ") {
|
|
23541
|
-
return
|
|
23541
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23542
23542
|
}
|
|
23543
23543
|
tokens1 = _to_consumable_array$a(tokens1).concat([
|
|
23544
23544
|
token
|
|
@@ -23557,7 +23557,7 @@ function indent(str, spaces) {
|
|
|
23557
23557
|
if (contextKeys.some(function(el) {
|
|
23558
23558
|
return el.startsWith(name);
|
|
23559
23559
|
})) {
|
|
23560
|
-
return
|
|
23560
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23561
23561
|
}
|
|
23562
23562
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23563
23563
|
return el === name;
|
|
@@ -23576,9 +23576,9 @@ function indent(str, spaces) {
|
|
|
23576
23576
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23577
23577
|
return el.startsWith(name);
|
|
23578
23578
|
})) {
|
|
23579
|
-
return
|
|
23579
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23580
23580
|
}
|
|
23581
|
-
return
|
|
23581
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23582
23582
|
v: nextMatch1
|
|
23583
23583
|
};
|
|
23584
23584
|
};
|
package/package.json
CHANGED
package/schema.fr.json
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "@digipair/skill-mongodb",
|
|
5
|
+
"summary": "Accès à une base MongoDB",
|
|
6
|
+
"description": "Cette compétence permet de gérer une base de données MongoDB.",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"x-icon": "💻"
|
|
9
|
+
},
|
|
10
|
+
"paths": {
|
|
11
|
+
"/database": {
|
|
12
|
+
"post": {
|
|
13
|
+
"tags": ["service"],
|
|
14
|
+
"summary": "Connecter à une base MongoDB",
|
|
15
|
+
"parameters": [
|
|
16
|
+
{
|
|
17
|
+
"name": "url",
|
|
18
|
+
"summary": "Adresse du serveur",
|
|
19
|
+
"required": true,
|
|
20
|
+
"description": "Adresse du serveur MongoDB",
|
|
21
|
+
"schema": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "database",
|
|
27
|
+
"summary": "Base de données",
|
|
28
|
+
"required": true,
|
|
29
|
+
"description": "Nom de la base de données",
|
|
30
|
+
"schema": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"x-events": []
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"/find": {
|
|
39
|
+
"post": {
|
|
40
|
+
"tags": ["service"],
|
|
41
|
+
"summary": "Rechercher dans une base MongoDB",
|
|
42
|
+
"parameters": [
|
|
43
|
+
{
|
|
44
|
+
"name": "client",
|
|
45
|
+
"summary": "Connection à la base de données",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "Client de connexion à la base de données",
|
|
48
|
+
"schema": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "options",
|
|
57
|
+
"summary": "Options",
|
|
58
|
+
"required": false,
|
|
59
|
+
"description": "Options de recherche",
|
|
60
|
+
"schema": {
|
|
61
|
+
"type": "object"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "collection",
|
|
66
|
+
"summary": "Collection",
|
|
67
|
+
"required": true,
|
|
68
|
+
"description": "Nom de la collection",
|
|
69
|
+
"schema": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "filter",
|
|
75
|
+
"summary": "Filtre",
|
|
76
|
+
"required": true,
|
|
77
|
+
"description": "Filtre de recherche",
|
|
78
|
+
"schema": {
|
|
79
|
+
"type": "object"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"x-events": []
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"/findOne": {
|
|
87
|
+
"post": {
|
|
88
|
+
"tags": ["service"],
|
|
89
|
+
"summary": "Rechercher un élément dans une base MongoDB",
|
|
90
|
+
"parameters": [
|
|
91
|
+
{
|
|
92
|
+
"name": "client",
|
|
93
|
+
"summary": "Connection à la base de données",
|
|
94
|
+
"required": false,
|
|
95
|
+
"description": "Client de connexion à la base de données",
|
|
96
|
+
"schema": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": {
|
|
99
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "options",
|
|
105
|
+
"summary": "Options",
|
|
106
|
+
"required": false,
|
|
107
|
+
"description": "Options de recherche",
|
|
108
|
+
"schema": {
|
|
109
|
+
"type": "object"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "collection",
|
|
114
|
+
"summary": "Collection",
|
|
115
|
+
"required": true,
|
|
116
|
+
"description": "Nom de la collection",
|
|
117
|
+
"schema": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "filter",
|
|
123
|
+
"summary": "Filtre",
|
|
124
|
+
"required": true,
|
|
125
|
+
"description": "Filtre de recherche",
|
|
126
|
+
"schema": {
|
|
127
|
+
"type": "object"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"x-events": []
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"/findById": {
|
|
135
|
+
"post": {
|
|
136
|
+
"tags": ["service"],
|
|
137
|
+
"summary": "Rechercher un élément par ID dans une base MongoDB",
|
|
138
|
+
"parameters": [
|
|
139
|
+
{
|
|
140
|
+
"name": "client",
|
|
141
|
+
"summary": "Connection à la base de données",
|
|
142
|
+
"required": false,
|
|
143
|
+
"description": "Client de connexion à la base de données",
|
|
144
|
+
"schema": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": {
|
|
147
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "options",
|
|
153
|
+
"summary": "Options",
|
|
154
|
+
"required": false,
|
|
155
|
+
"description": "Options de recherche",
|
|
156
|
+
"schema": {
|
|
157
|
+
"type": "object"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "collection",
|
|
162
|
+
"summary": "Collection",
|
|
163
|
+
"required": true,
|
|
164
|
+
"description": "Nom de la collection",
|
|
165
|
+
"schema": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "id",
|
|
171
|
+
"summary": "Identifiant",
|
|
172
|
+
"required": true,
|
|
173
|
+
"description": "Identifiant de l'élément",
|
|
174
|
+
"schema": {
|
|
175
|
+
"type": "object"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"x-events": []
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"/insertOne": {
|
|
183
|
+
"post": {
|
|
184
|
+
"tags": ["service"],
|
|
185
|
+
"summary": "Insérer un élément dans une base MongoDB",
|
|
186
|
+
"parameters": [
|
|
187
|
+
{
|
|
188
|
+
"name": "client",
|
|
189
|
+
"summary": "Connection à la base de données",
|
|
190
|
+
"required": false,
|
|
191
|
+
"description": "Client de connexion à la base de données",
|
|
192
|
+
"schema": {
|
|
193
|
+
"type": "array",
|
|
194
|
+
"items": {
|
|
195
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "options",
|
|
201
|
+
"summary": "Options",
|
|
202
|
+
"required": false,
|
|
203
|
+
"description": "Options de recherche",
|
|
204
|
+
"schema": {
|
|
205
|
+
"type": "object"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "collection",
|
|
210
|
+
"summary": "Collection",
|
|
211
|
+
"required": true,
|
|
212
|
+
"description": "Nom de la collection",
|
|
213
|
+
"schema": {
|
|
214
|
+
"type": "string"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "document",
|
|
219
|
+
"summary": "Document",
|
|
220
|
+
"required": true,
|
|
221
|
+
"description": "Document à insérer",
|
|
222
|
+
"schema": {
|
|
223
|
+
"type": "object"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"x-events": []
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"/updateOne": {
|
|
231
|
+
"post": {
|
|
232
|
+
"tags": ["service"],
|
|
233
|
+
"summary": "Mettre à jour un élément dans une base MongoDB",
|
|
234
|
+
"parameters": [
|
|
235
|
+
{
|
|
236
|
+
"name": "client",
|
|
237
|
+
"summary": "Connection à la base de données",
|
|
238
|
+
"required": false,
|
|
239
|
+
"description": "Client de connexion à la base de données",
|
|
240
|
+
"schema": {
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "options",
|
|
249
|
+
"summary": "Options",
|
|
250
|
+
"required": false,
|
|
251
|
+
"description": "Options de recherche",
|
|
252
|
+
"schema": {
|
|
253
|
+
"type": "object"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "collection",
|
|
258
|
+
"summary": "Collection",
|
|
259
|
+
"required": true,
|
|
260
|
+
"description": "Nom de la collection",
|
|
261
|
+
"schema": {
|
|
262
|
+
"type": "string"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "filter",
|
|
267
|
+
"summary": "Filtre",
|
|
268
|
+
"required": true,
|
|
269
|
+
"description": "Filtre de recherche",
|
|
270
|
+
"schema": {
|
|
271
|
+
"type": "object"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "update",
|
|
276
|
+
"summary": "Filtre de mise à jour",
|
|
277
|
+
"required": true,
|
|
278
|
+
"description": "Filtre de mise à jour",
|
|
279
|
+
"schema": {
|
|
280
|
+
"type": "object"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"x-events": []
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"/updateById": {
|
|
288
|
+
"post": {
|
|
289
|
+
"tags": ["service"],
|
|
290
|
+
"summary": "Mettre à jour un élément par ID dans une base MongoDB",
|
|
291
|
+
"parameters": [
|
|
292
|
+
{
|
|
293
|
+
"name": "client",
|
|
294
|
+
"summary": "Connection à la base de données",
|
|
295
|
+
"required": false,
|
|
296
|
+
"description": "Client de connexion à la base de données",
|
|
297
|
+
"schema": {
|
|
298
|
+
"type": "array",
|
|
299
|
+
"items": {
|
|
300
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "options",
|
|
306
|
+
"summary": "Options",
|
|
307
|
+
"required": false,
|
|
308
|
+
"description": "Options de recherche",
|
|
309
|
+
"schema": {
|
|
310
|
+
"type": "object"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "id",
|
|
315
|
+
"summary": "Identifiant",
|
|
316
|
+
"required": true,
|
|
317
|
+
"description": "Identifiant de l'élément",
|
|
318
|
+
"schema": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "collection",
|
|
324
|
+
"summary": "Collection",
|
|
325
|
+
"required": true,
|
|
326
|
+
"description": "Nom de la collection",
|
|
327
|
+
"schema": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "update",
|
|
333
|
+
"summary": "Filtre de mise à jour",
|
|
334
|
+
"required": true,
|
|
335
|
+
"description": "Filtre de mise à jour",
|
|
336
|
+
"schema": {
|
|
337
|
+
"type": "object"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"x-events": []
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"components": {
|
|
346
|
+
"schemas": {}
|
|
347
|
+
},
|
|
348
|
+
"x-scene-blocks": {}
|
|
349
|
+
}
|
package/schema.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"openapi": "3.0.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@digipair/skill-mongodb",
|
|
5
|
-
"summary": "
|
|
6
|
-
"description": "
|
|
5
|
+
"summary": "Access to a MongoDB database",
|
|
6
|
+
"description": "This skill allows you to manage a MongoDB database.",
|
|
7
7
|
"version": "0.1.0",
|
|
8
8
|
"x-icon": "💻"
|
|
9
9
|
},
|
|
@@ -11,22 +11,22 @@
|
|
|
11
11
|
"/database": {
|
|
12
12
|
"post": {
|
|
13
13
|
"tags": ["service"],
|
|
14
|
-
"summary": "
|
|
14
|
+
"summary": "Connect to a MongoDB database",
|
|
15
15
|
"parameters": [
|
|
16
16
|
{
|
|
17
17
|
"name": "url",
|
|
18
|
-
"summary": "
|
|
18
|
+
"summary": "Server address",
|
|
19
19
|
"required": true,
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "MongoDB server address",
|
|
21
21
|
"schema": {
|
|
22
22
|
"type": "string"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "database",
|
|
27
|
-
"summary": "
|
|
27
|
+
"summary": "Database",
|
|
28
28
|
"required": true,
|
|
29
|
-
"description": "
|
|
29
|
+
"description": "Name of the database",
|
|
30
30
|
"schema": {
|
|
31
31
|
"type": "string"
|
|
32
32
|
}
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"/find": {
|
|
39
39
|
"post": {
|
|
40
40
|
"tags": ["service"],
|
|
41
|
-
"summary": "
|
|
41
|
+
"summary": "Search in a MongoDB database",
|
|
42
42
|
"parameters": [
|
|
43
43
|
{
|
|
44
44
|
"name": "client",
|
|
45
|
-
"summary": "
|
|
45
|
+
"summary": "Database connection",
|
|
46
46
|
"required": false,
|
|
47
|
-
"description": "
|
|
47
|
+
"description": "Database connection client",
|
|
48
48
|
"schema": {
|
|
49
49
|
"type": "array",
|
|
50
50
|
"items": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"name": "options",
|
|
57
57
|
"summary": "Options",
|
|
58
58
|
"required": false,
|
|
59
|
-
"description": "
|
|
59
|
+
"description": "Search options",
|
|
60
60
|
"schema": {
|
|
61
61
|
"type": "object"
|
|
62
62
|
}
|
|
@@ -65,16 +65,16 @@
|
|
|
65
65
|
"name": "collection",
|
|
66
66
|
"summary": "Collection",
|
|
67
67
|
"required": true,
|
|
68
|
-
"description": "
|
|
68
|
+
"description": "Name of the collection",
|
|
69
69
|
"schema": {
|
|
70
70
|
"type": "string"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"name": "filter",
|
|
75
|
-
"summary": "
|
|
75
|
+
"summary": "Filter",
|
|
76
76
|
"required": true,
|
|
77
|
-
"description": "
|
|
77
|
+
"description": "Search filter",
|
|
78
78
|
"schema": {
|
|
79
79
|
"type": "object"
|
|
80
80
|
}
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"/findOne": {
|
|
87
87
|
"post": {
|
|
88
88
|
"tags": ["service"],
|
|
89
|
-
"summary": "
|
|
89
|
+
"summary": "Search for an item in a MongoDB database",
|
|
90
90
|
"parameters": [
|
|
91
91
|
{
|
|
92
92
|
"name": "client",
|
|
93
|
-
"summary": "
|
|
93
|
+
"summary": "Database connection",
|
|
94
94
|
"required": false,
|
|
95
|
-
"description": "
|
|
95
|
+
"description": "Database connection client",
|
|
96
96
|
"schema": {
|
|
97
97
|
"type": "array",
|
|
98
98
|
"items": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"name": "options",
|
|
105
105
|
"summary": "Options",
|
|
106
106
|
"required": false,
|
|
107
|
-
"description": "
|
|
107
|
+
"description": "Search options",
|
|
108
108
|
"schema": {
|
|
109
109
|
"type": "object"
|
|
110
110
|
}
|
|
@@ -113,16 +113,16 @@
|
|
|
113
113
|
"name": "collection",
|
|
114
114
|
"summary": "Collection",
|
|
115
115
|
"required": true,
|
|
116
|
-
"description": "
|
|
116
|
+
"description": "Name of the collection",
|
|
117
117
|
"schema": {
|
|
118
118
|
"type": "string"
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"name": "filter",
|
|
123
|
-
"summary": "
|
|
123
|
+
"summary": "Filter",
|
|
124
124
|
"required": true,
|
|
125
|
-
"description": "
|
|
125
|
+
"description": "Search filter",
|
|
126
126
|
"schema": {
|
|
127
127
|
"type": "object"
|
|
128
128
|
}
|
|
@@ -134,13 +134,13 @@
|
|
|
134
134
|
"/findById": {
|
|
135
135
|
"post": {
|
|
136
136
|
"tags": ["service"],
|
|
137
|
-
"summary": "
|
|
137
|
+
"summary": "Search for an item by ID in a MongoDB database",
|
|
138
138
|
"parameters": [
|
|
139
139
|
{
|
|
140
140
|
"name": "client",
|
|
141
|
-
"summary": "
|
|
141
|
+
"summary": "Database connection",
|
|
142
142
|
"required": false,
|
|
143
|
-
"description": "
|
|
143
|
+
"description": "Database connection client",
|
|
144
144
|
"schema": {
|
|
145
145
|
"type": "array",
|
|
146
146
|
"items": {
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"name": "options",
|
|
153
153
|
"summary": "Options",
|
|
154
154
|
"required": false,
|
|
155
|
-
"description": "
|
|
155
|
+
"description": "Search options",
|
|
156
156
|
"schema": {
|
|
157
157
|
"type": "object"
|
|
158
158
|
}
|
|
@@ -161,16 +161,16 @@
|
|
|
161
161
|
"name": "collection",
|
|
162
162
|
"summary": "Collection",
|
|
163
163
|
"required": true,
|
|
164
|
-
"description": "
|
|
164
|
+
"description": "Name of the collection",
|
|
165
165
|
"schema": {
|
|
166
166
|
"type": "string"
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"name": "id",
|
|
171
|
-
"summary": "
|
|
171
|
+
"summary": "Identifier",
|
|
172
172
|
"required": true,
|
|
173
|
-
"description": "
|
|
173
|
+
"description": "Identifier of the item",
|
|
174
174
|
"schema": {
|
|
175
175
|
"type": "object"
|
|
176
176
|
}
|
|
@@ -182,13 +182,13 @@
|
|
|
182
182
|
"/insertOne": {
|
|
183
183
|
"post": {
|
|
184
184
|
"tags": ["service"],
|
|
185
|
-
"summary": "
|
|
185
|
+
"summary": "Insert an item into a MongoDB database",
|
|
186
186
|
"parameters": [
|
|
187
187
|
{
|
|
188
188
|
"name": "client",
|
|
189
|
-
"summary": "
|
|
189
|
+
"summary": "Database connection",
|
|
190
190
|
"required": false,
|
|
191
|
-
"description": "
|
|
191
|
+
"description": "Database connection client",
|
|
192
192
|
"schema": {
|
|
193
193
|
"type": "array",
|
|
194
194
|
"items": {
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"name": "options",
|
|
201
201
|
"summary": "Options",
|
|
202
202
|
"required": false,
|
|
203
|
-
"description": "
|
|
203
|
+
"description": "Insert options",
|
|
204
204
|
"schema": {
|
|
205
205
|
"type": "object"
|
|
206
206
|
}
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"name": "collection",
|
|
210
210
|
"summary": "Collection",
|
|
211
211
|
"required": true,
|
|
212
|
-
"description": "
|
|
212
|
+
"description": "Name of the collection",
|
|
213
213
|
"schema": {
|
|
214
214
|
"type": "string"
|
|
215
215
|
}
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
"name": "document",
|
|
219
219
|
"summary": "Document",
|
|
220
220
|
"required": true,
|
|
221
|
-
"description": "Document
|
|
221
|
+
"description": "Document to insert",
|
|
222
222
|
"schema": {
|
|
223
223
|
"type": "object"
|
|
224
224
|
}
|
|
@@ -230,13 +230,13 @@
|
|
|
230
230
|
"/updateOne": {
|
|
231
231
|
"post": {
|
|
232
232
|
"tags": ["service"],
|
|
233
|
-
"summary": "
|
|
233
|
+
"summary": "Update an item in a MongoDB database",
|
|
234
234
|
"parameters": [
|
|
235
235
|
{
|
|
236
236
|
"name": "client",
|
|
237
|
-
"summary": "
|
|
237
|
+
"summary": "Database connection",
|
|
238
238
|
"required": false,
|
|
239
|
-
"description": "
|
|
239
|
+
"description": "Database connection client",
|
|
240
240
|
"schema": {
|
|
241
241
|
"type": "array",
|
|
242
242
|
"items": {
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"name": "options",
|
|
249
249
|
"summary": "Options",
|
|
250
250
|
"required": false,
|
|
251
|
-
"description": "
|
|
251
|
+
"description": "Update options",
|
|
252
252
|
"schema": {
|
|
253
253
|
"type": "object"
|
|
254
254
|
}
|
|
@@ -257,25 +257,25 @@
|
|
|
257
257
|
"name": "collection",
|
|
258
258
|
"summary": "Collection",
|
|
259
259
|
"required": true,
|
|
260
|
-
"description": "
|
|
260
|
+
"description": "Name of the collection",
|
|
261
261
|
"schema": {
|
|
262
262
|
"type": "string"
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
"name": "filter",
|
|
267
|
-
"summary": "
|
|
267
|
+
"summary": "Filter",
|
|
268
268
|
"required": true,
|
|
269
|
-
"description": "
|
|
269
|
+
"description": "Search filter",
|
|
270
270
|
"schema": {
|
|
271
271
|
"type": "object"
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
"name": "update",
|
|
276
|
-
"summary": "
|
|
276
|
+
"summary": "Update filter",
|
|
277
277
|
"required": true,
|
|
278
|
-
"description": "
|
|
278
|
+
"description": "Update filter",
|
|
279
279
|
"schema": {
|
|
280
280
|
"type": "object"
|
|
281
281
|
}
|
|
@@ -287,13 +287,13 @@
|
|
|
287
287
|
"/updateById": {
|
|
288
288
|
"post": {
|
|
289
289
|
"tags": ["service"],
|
|
290
|
-
"summary": "
|
|
290
|
+
"summary": "Update an item by ID in a MongoDB database",
|
|
291
291
|
"parameters": [
|
|
292
292
|
{
|
|
293
293
|
"name": "client",
|
|
294
|
-
"summary": "
|
|
294
|
+
"summary": "Database connection",
|
|
295
295
|
"required": false,
|
|
296
|
-
"description": "
|
|
296
|
+
"description": "Database connection client",
|
|
297
297
|
"schema": {
|
|
298
298
|
"type": "array",
|
|
299
299
|
"items": {
|
|
@@ -305,16 +305,16 @@
|
|
|
305
305
|
"name": "options",
|
|
306
306
|
"summary": "Options",
|
|
307
307
|
"required": false,
|
|
308
|
-
"description": "
|
|
308
|
+
"description": "Update options",
|
|
309
309
|
"schema": {
|
|
310
310
|
"type": "object"
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"name": "id",
|
|
315
|
-
"summary": "
|
|
315
|
+
"summary": "Identifier",
|
|
316
316
|
"required": true,
|
|
317
|
-
"description": "
|
|
317
|
+
"description": "Identifier of the item",
|
|
318
318
|
"schema": {
|
|
319
319
|
"type": "string"
|
|
320
320
|
}
|
|
@@ -323,16 +323,16 @@
|
|
|
323
323
|
"name": "collection",
|
|
324
324
|
"summary": "Collection",
|
|
325
325
|
"required": true,
|
|
326
|
-
"description": "
|
|
326
|
+
"description": "Name of the collection",
|
|
327
327
|
"schema": {
|
|
328
328
|
"type": "string"
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"name": "update",
|
|
333
|
-
"summary": "
|
|
333
|
+
"summary": "Update filter",
|
|
334
334
|
"required": true,
|
|
335
|
-
"description": "
|
|
335
|
+
"description": "Update filter",
|
|
336
336
|
"schema": {
|
|
337
337
|
"type": "object"
|
|
338
338
|
}
|