kuzzle 2.19.0 → 2.19.3

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.
Files changed (288) hide show
  1. package/lib/api/controllers/adminController.js +94 -80
  2. package/lib/api/controllers/authController.js +239 -212
  3. package/lib/api/controllers/baseController.js +89 -51
  4. package/lib/api/controllers/bulkController.js +62 -49
  5. package/lib/api/controllers/clusterController.js +6 -8
  6. package/lib/api/controllers/collectionController.js +140 -129
  7. package/lib/api/controllers/debugController.d.ts +2 -2
  8. package/lib/api/controllers/debugController.js +33 -31
  9. package/lib/api/controllers/documentController.js +365 -274
  10. package/lib/api/controllers/index.js +13 -13
  11. package/lib/api/controllers/indexController.js +46 -50
  12. package/lib/api/controllers/memoryStorageController.js +410 -360
  13. package/lib/api/controllers/realtimeController.js +37 -36
  14. package/lib/api/controllers/securityController.js +553 -412
  15. package/lib/api/controllers/serverController.js +111 -104
  16. package/lib/api/documentExtractor.js +75 -68
  17. package/lib/api/funnel.js +411 -312
  18. package/lib/api/httpRoutes.js +1493 -324
  19. package/lib/api/openapi/OpenApiManager.d.ts +1 -1
  20. package/lib/api/openapi/OpenApiManager.js +22 -22
  21. package/lib/api/openapi/components/document/count.yaml +1 -1
  22. package/lib/api/openapi/components/document/create.yaml +2 -2
  23. package/lib/api/openapi/components/document/delete.yaml +1 -1
  24. package/lib/api/openapi/components/document/deleteByQuery.yaml +1 -1
  25. package/lib/api/openapi/components/document/exists.yaml +1 -1
  26. package/lib/api/openapi/components/document/get.yaml +2 -2
  27. package/lib/api/openapi/components/document/index.js +12 -12
  28. package/lib/api/openapi/components/document/replace.yaml +1 -1
  29. package/lib/api/openapi/components/document/scroll.yaml +1 -1
  30. package/lib/api/openapi/components/document/validate.yaml +1 -1
  31. package/lib/api/openapi/components/index.d.ts +2 -2
  32. package/lib/api/openapi/components/index.js +1 -1
  33. package/lib/api/openapi/components/security/index.js +1 -1
  34. package/lib/api/openapi/components/security/upsertUser.yaml +2 -3
  35. package/lib/api/openapi/index.d.ts +1 -1
  36. package/lib/api/openapi/openApiGenerator.d.ts +1 -1
  37. package/lib/api/openapi/openApiGenerator.js +7 -7
  38. package/lib/api/rateLimiter.js +12 -13
  39. package/lib/api/request/index.d.ts +4 -4
  40. package/lib/api/request/kuzzleRequest.d.ts +9 -9
  41. package/lib/api/request/kuzzleRequest.js +89 -87
  42. package/lib/api/request/requestContext.d.ts +2 -2
  43. package/lib/api/request/requestContext.js +17 -17
  44. package/lib/api/request/requestInput.d.ts +1 -1
  45. package/lib/api/request/requestInput.js +19 -19
  46. package/lib/api/request/requestResponse.d.ts +4 -4
  47. package/lib/api/request/requestResponse.js +31 -33
  48. package/lib/cluster/command.js +48 -44
  49. package/lib/cluster/idCardHandler.d.ts +1 -1
  50. package/lib/cluster/idCardHandler.js +15 -15
  51. package/lib/cluster/index.js +2 -2
  52. package/lib/cluster/node.js +301 -269
  53. package/lib/cluster/publisher.js +45 -46
  54. package/lib/cluster/state.d.ts +5 -5
  55. package/lib/cluster/state.js +8 -8
  56. package/lib/cluster/subscriber.js +163 -113
  57. package/lib/cluster/workers/IDCardRenewer.js +33 -32
  58. package/lib/config/default.config.d.ts +1 -1
  59. package/lib/config/default.config.js +212 -171
  60. package/lib/config/documentEventAliases.js +6 -6
  61. package/lib/config/index.js +161 -98
  62. package/lib/config/sdkCompatibility.json +8 -8
  63. package/lib/core/auth/formatProcessing.js +7 -7
  64. package/lib/core/auth/passportResponse.js +7 -7
  65. package/lib/core/auth/passportWrapper.js +34 -30
  66. package/lib/core/auth/tokenManager.d.ts +2 -2
  67. package/lib/core/auth/tokenManager.js +11 -10
  68. package/lib/core/backend/applicationManager.d.ts +1 -1
  69. package/lib/core/backend/applicationManager.js +2 -2
  70. package/lib/core/backend/backend.d.ts +3 -3
  71. package/lib/core/backend/backend.js +34 -31
  72. package/lib/core/backend/backendCluster.d.ts +2 -2
  73. package/lib/core/backend/backendCluster.js +5 -5
  74. package/lib/core/backend/backendConfig.d.ts +2 -2
  75. package/lib/core/backend/backendConfig.js +3 -3
  76. package/lib/core/backend/backendController.d.ts +2 -2
  77. package/lib/core/backend/backendController.js +9 -10
  78. package/lib/core/backend/backendErrors.d.ts +3 -3
  79. package/lib/core/backend/backendErrors.js +2 -1
  80. package/lib/core/backend/backendHook.d.ts +2 -2
  81. package/lib/core/backend/backendHook.js +5 -5
  82. package/lib/core/backend/backendImport.d.ts +3 -3
  83. package/lib/core/backend/backendImport.js +23 -23
  84. package/lib/core/backend/backendOpenApi.d.ts +2 -2
  85. package/lib/core/backend/backendOpenApi.js +16 -16
  86. package/lib/core/backend/backendPipe.d.ts +2 -2
  87. package/lib/core/backend/backendPipe.js +6 -6
  88. package/lib/core/backend/backendPlugin.d.ts +4 -4
  89. package/lib/core/backend/backendPlugin.js +14 -14
  90. package/lib/core/backend/backendStorage.d.ts +2 -2
  91. package/lib/core/backend/backendStorage.js +1 -2
  92. package/lib/core/backend/backendVault.d.ts +2 -2
  93. package/lib/core/backend/backendVault.js +3 -3
  94. package/lib/core/backend/index.d.ts +14 -14
  95. package/lib/core/backend/internalLogger.d.ts +1 -1
  96. package/lib/core/backend/internalLogger.js +5 -5
  97. package/lib/core/cache/cacheDbEnum.js +4 -4
  98. package/lib/core/cache/cacheEngine.js +79 -85
  99. package/lib/core/network/accessLogger.js +126 -120
  100. package/lib/core/network/clientConnection.js +5 -5
  101. package/lib/core/network/context.js +8 -8
  102. package/lib/core/network/entryPoint.js +100 -85
  103. package/lib/core/network/httpRouter/index.js +63 -60
  104. package/lib/core/network/httpRouter/routeHandler.js +18 -19
  105. package/lib/core/network/httpRouter/routePart.js +23 -19
  106. package/lib/core/network/protocolManifest.js +3 -3
  107. package/lib/core/network/protocols/httpMessage.js +8 -10
  108. package/lib/core/network/protocols/httpwsProtocol.js +305 -250
  109. package/lib/core/network/protocols/internalProtocol.js +27 -24
  110. package/lib/core/network/protocols/mqttProtocol.js +106 -96
  111. package/lib/core/network/protocols/protocol.js +20 -17
  112. package/lib/core/network/router.js +56 -46
  113. package/lib/core/plugin/plugin.js +151 -120
  114. package/lib/core/plugin/pluginContext.d.ts +7 -7
  115. package/lib/core/plugin/pluginContext.js +48 -44
  116. package/lib/core/plugin/pluginManifest.js +13 -12
  117. package/lib/core/plugin/pluginRepository.js +26 -27
  118. package/lib/core/plugin/pluginsManager.js +425 -304
  119. package/lib/core/plugin/privilegedContext.js +3 -3
  120. package/lib/core/realtime/actionEnum.js +1 -1
  121. package/lib/core/realtime/channel.d.ts +1 -1
  122. package/lib/core/realtime/channel.js +22 -22
  123. package/lib/core/realtime/connectionRooms.d.ts +1 -1
  124. package/lib/core/realtime/hotelClerk.d.ts +2 -2
  125. package/lib/core/realtime/hotelClerk.js +53 -50
  126. package/lib/core/realtime/index.js +5 -5
  127. package/lib/core/realtime/notification/document.js +25 -25
  128. package/lib/core/realtime/notification/index.js +4 -4
  129. package/lib/core/realtime/notification/server.js +3 -3
  130. package/lib/core/realtime/notification/user.js +4 -4
  131. package/lib/core/realtime/notifier.js +113 -75
  132. package/lib/core/realtime/room.d.ts +1 -1
  133. package/lib/core/realtime/subscription.d.ts +1 -1
  134. package/lib/core/realtime/subscription.js +1 -1
  135. package/lib/core/security/index.js +8 -8
  136. package/lib/core/security/profileRepository.d.ts +6 -6
  137. package/lib/core/security/profileRepository.js +48 -45
  138. package/lib/core/security/roleRepository.js +127 -115
  139. package/lib/core/security/securityLoader.js +70 -63
  140. package/lib/core/security/tokenRepository.js +132 -118
  141. package/lib/core/security/userRepository.js +104 -88
  142. package/lib/core/shared/KoncordeWrapper.d.ts +1 -1
  143. package/lib/core/shared/KoncordeWrapper.js +3 -1
  144. package/lib/core/shared/abstractManifest.js +22 -23
  145. package/lib/core/shared/repository.js +69 -67
  146. package/lib/core/shared/sdk/embeddedSdk.d.ts +2 -2
  147. package/lib/core/shared/sdk/embeddedSdk.js +36 -32
  148. package/lib/core/shared/sdk/funnelProtocol.d.ts +1 -1
  149. package/lib/core/shared/sdk/funnelProtocol.js +11 -11
  150. package/lib/core/shared/sdk/impersonatedSdk.js +19 -18
  151. package/lib/core/shared/store.js +127 -32
  152. package/lib/core/statistics/index.js +2 -2
  153. package/lib/core/statistics/statistics.js +99 -85
  154. package/lib/core/storage/clientAdapter.js +219 -136
  155. package/lib/core/storage/indexCache.js +3 -3
  156. package/lib/core/storage/storageEngine.js +10 -13
  157. package/lib/core/storage/storeScopeEnum.js +3 -3
  158. package/lib/core/validation/baseType.js +12 -10
  159. package/lib/core/validation/index.js +2 -2
  160. package/lib/core/validation/types/anything.js +4 -4
  161. package/lib/core/validation/types/boolean.js +7 -7
  162. package/lib/core/validation/types/date.js +165 -131
  163. package/lib/core/validation/types/email.js +18 -21
  164. package/lib/core/validation/types/enum.js +34 -21
  165. package/lib/core/validation/types/geoPoint.js +7 -7
  166. package/lib/core/validation/types/geoShape.js +148 -125
  167. package/lib/core/validation/types/integer.js +9 -9
  168. package/lib/core/validation/types/ipAddress.js +17 -19
  169. package/lib/core/validation/types/numeric.js +36 -29
  170. package/lib/core/validation/types/object.js +19 -19
  171. package/lib/core/validation/types/string.js +36 -29
  172. package/lib/core/validation/types/url.js +17 -19
  173. package/lib/core/validation/validation.js +422 -378
  174. package/lib/kerror/codes/1-services.json +7 -1
  175. package/lib/kerror/codes/4-plugin.json +2 -2
  176. package/lib/kerror/codes/index.js +85 -63
  177. package/lib/kerror/errors/badRequestError.d.ts +1 -1
  178. package/lib/kerror/errors/externalServiceError.d.ts +1 -1
  179. package/lib/kerror/errors/forbiddenError.d.ts +1 -1
  180. package/lib/kerror/errors/gatewayTimeoutError.d.ts +1 -1
  181. package/lib/kerror/errors/index.d.ts +15 -15
  182. package/lib/kerror/errors/internalError.d.ts +1 -1
  183. package/lib/kerror/errors/kuzzleError.d.ts +1 -1
  184. package/lib/kerror/errors/multipleErrorsError.d.ts +1 -1
  185. package/lib/kerror/errors/multipleErrorsError.js +1 -1
  186. package/lib/kerror/errors/notFoundError.d.ts +1 -1
  187. package/lib/kerror/errors/partialError.d.ts +1 -1
  188. package/lib/kerror/errors/partialError.js +1 -1
  189. package/lib/kerror/errors/pluginImplementationError.d.ts +1 -1
  190. package/lib/kerror/errors/pluginImplementationError.js +2 -1
  191. package/lib/kerror/errors/preconditionError.d.ts +1 -1
  192. package/lib/kerror/errors/serviceUnavailableError.d.ts +1 -1
  193. package/lib/kerror/errors/sizeLimitError.d.ts +1 -1
  194. package/lib/kerror/errors/tooManyRequestsError.d.ts +1 -1
  195. package/lib/kerror/errors/unauthorizedError.d.ts +1 -1
  196. package/lib/kerror/index.d.ts +3 -3
  197. package/lib/kerror/index.js +17 -16
  198. package/lib/kuzzle/dumpGenerator.js +130 -114
  199. package/lib/kuzzle/event/kuzzleEventEmitter.js +96 -70
  200. package/lib/kuzzle/event/pipeRunner.js +25 -24
  201. package/lib/kuzzle/event/waterfall.js +13 -15
  202. package/lib/kuzzle/index.js +2 -2
  203. package/lib/kuzzle/internalIndexHandler.js +80 -59
  204. package/lib/kuzzle/kuzzle.js +99 -99
  205. package/lib/kuzzle/kuzzleStateEnum.js +1 -1
  206. package/lib/kuzzle/log.js +23 -18
  207. package/lib/kuzzle/vault.js +34 -19
  208. package/lib/model/security/profile.d.ts +3 -3
  209. package/lib/model/security/profile.js +38 -37
  210. package/lib/model/security/rights.js +5 -5
  211. package/lib/model/security/role.d.ts +3 -3
  212. package/lib/model/security/role.js +25 -26
  213. package/lib/model/security/token.d.ts +1 -1
  214. package/lib/model/security/token.js +4 -4
  215. package/lib/model/security/user.d.ts +2 -2
  216. package/lib/model/security/user.js +9 -9
  217. package/lib/model/storage/apiKey.js +43 -33
  218. package/lib/model/storage/baseModel.js +49 -45
  219. package/lib/service/cache/redis.js +60 -55
  220. package/lib/service/service.js +17 -17
  221. package/lib/service/storage/elasticsearch.js +839 -755
  222. package/lib/service/storage/esWrapper.js +103 -86
  223. package/lib/service/storage/queryTranslator.js +52 -59
  224. package/lib/types/Controller.d.ts +3 -3
  225. package/lib/types/ControllerDefinition.d.ts +3 -3
  226. package/lib/types/DebugModule.d.ts +2 -2
  227. package/lib/types/DebugModule.js +1 -1
  228. package/lib/types/Global.d.ts +1 -1
  229. package/lib/types/HttpStream.d.ts +2 -1
  230. package/lib/types/HttpStream.js +7 -5
  231. package/lib/types/Kuzzle.d.ts +1 -1
  232. package/lib/types/KuzzleDocument.d.ts +1 -1
  233. package/lib/types/OpenApiDefinition.d.ts +1 -1
  234. package/lib/types/PasswordPolicy.d.ts +1 -1
  235. package/lib/types/Plugin.d.ts +6 -6
  236. package/lib/types/Plugin.js +2 -2
  237. package/lib/types/Policy.d.ts +1 -1
  238. package/lib/types/RequestPayload.d.ts +1 -1
  239. package/lib/types/ResponsePayload.d.ts +1 -1
  240. package/lib/types/Token.d.ts +1 -1
  241. package/lib/types/User.d.ts +1 -1
  242. package/lib/types/config/DumpConfiguration.d.ts +8 -8
  243. package/lib/types/config/HttpConfiguration.d.ts +1 -1
  244. package/lib/types/config/KuzzleConfiguration.d.ts +1 -1
  245. package/lib/types/config/LimitsConfiguration.d.ts +8 -8
  246. package/lib/types/config/PluginsConfiguration.d.ts +4 -4
  247. package/lib/types/config/SecurityConfiguration.d.ts +62 -62
  248. package/lib/types/config/ServerConfiguration.d.ts +55 -55
  249. package/lib/types/config/ServicesConfiguration.d.ts +2 -2
  250. package/lib/types/config/internalCache/InternalCacheRedisConfiguration.d.ts +10 -10
  251. package/lib/types/config/publicCache/PublicCacheRedisConfiguration.d.ts +3 -3
  252. package/lib/types/config/storageEngine/StorageEngineElasticsearchConfiguration.d.ts +194 -110
  253. package/lib/types/errors/ErrorDefinition.d.ts +1 -1
  254. package/lib/types/errors/ErrorDomains.d.ts +1 -1
  255. package/lib/types/index.d.ts +38 -38
  256. package/lib/types/realtime/RealtimeScope.d.ts +1 -1
  257. package/lib/types/realtime/RealtimeUsers.d.ts +1 -1
  258. package/lib/util/assertType.js +13 -11
  259. package/lib/util/async.d.ts +1 -0
  260. package/lib/util/async.js +61 -0
  261. package/lib/util/asyncStore.js +19 -21
  262. package/lib/util/bufferedPassThrough.d.ts +2 -2
  263. package/lib/util/bufferedPassThrough.js +4 -4
  264. package/lib/util/bytes.js +9 -13
  265. package/lib/util/crypto.js +1 -1
  266. package/lib/util/debug.js +5 -5
  267. package/lib/util/deprecate.js +24 -21
  268. package/lib/util/didYouMean.js +7 -7
  269. package/lib/util/dump-collection.d.ts +2 -2
  270. package/lib/util/dump-collection.js +26 -26
  271. package/lib/util/esRequest.d.ts +1 -0
  272. package/lib/util/esRequest.js +62 -0
  273. package/lib/util/extractFields.js +24 -25
  274. package/lib/util/inflector.js +5 -5
  275. package/lib/util/koncordeCompat.d.ts +2 -2
  276. package/lib/util/koncordeCompat.js +5 -5
  277. package/lib/util/memoize.js +3 -5
  278. package/lib/util/mutex.d.ts +19 -1
  279. package/lib/util/mutex.js +39 -12
  280. package/lib/util/name-generator.js +1331 -1331
  281. package/lib/util/promback.js +8 -10
  282. package/lib/util/readYamlFile.d.ts +1 -1
  283. package/lib/util/readYamlFile.js +1 -1
  284. package/lib/util/requestAssertions.js +34 -34
  285. package/lib/util/safeObject.js +5 -5
  286. package/lib/util/stackTrace.js +20 -22
  287. package/lib/util/wildcard.js +15 -15
  288. package/package.json +6 -6
@@ -21,7 +21,7 @@
21
21
 
22
22
  /* eslint sort-keys: 0 */
23
23
 
24
- 'use strict';
24
+ "use strict";
25
25
 
26
26
  const {
27
27
  OpenApiDocumentCount,
@@ -37,355 +37,1524 @@ const {
37
37
  OpenApiDocumentValidate,
38
38
  OpenApiSecurityUpsertUser,
39
39
  OpenApiDocumentmCreateOrReplace,
40
- } = require('./openapi/components');
40
+ } = require("./openapi/components");
41
41
 
42
42
  const routes = [
43
43
  // GET (idempotent)
44
- { verb: 'get', path: '/_me', controller: 'auth', action: 'getCurrentUser' },
45
- { verb: 'get', path: '/_me/_rights', controller: 'auth', action: 'getMyRights' },
46
- { verb: 'get', path: '/_me/credentials/:strategy', controller: 'auth', action: 'getMyCredentials' },
47
- { verb: 'get', path: '/_me/credentials/:strategy/_exists', controller: 'auth', action: 'credentialsExist' },
48
- { verb: 'get', path: '/strategies', controller: 'auth', action: 'getStrategies' },
44
+ { verb: "get", path: "/_me", controller: "auth", action: "getCurrentUser" },
45
+ {
46
+ verb: "get",
47
+ path: "/_me/_rights",
48
+ controller: "auth",
49
+ action: "getMyRights",
50
+ },
51
+ {
52
+ verb: "get",
53
+ path: "/_me/credentials/:strategy",
54
+ controller: "auth",
55
+ action: "getMyCredentials",
56
+ },
57
+ {
58
+ verb: "get",
59
+ path: "/_me/credentials/:strategy/_exists",
60
+ controller: "auth",
61
+ action: "credentialsExist",
62
+ },
63
+ {
64
+ verb: "get",
65
+ path: "/strategies",
66
+ controller: "auth",
67
+ action: "getStrategies",
68
+ },
49
69
 
50
- { verb: 'get', path: '/users/_me', controller: 'auth', action: 'getCurrentUser', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me' } }, // @deprecated
51
- { verb: 'get', path: '/users/_me/_rights', controller: 'auth', action: 'getMyRights', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me/_rights' } }, // @deprecated
52
- { verb: 'get', path: '/credentials/:strategy/_me', controller: 'auth', action: 'getMyCredentials', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me/credentials/:strategy' } }, // @deprecated
53
- { verb: 'get', path: '/credentials/:strategy/_me/_exists', controller: 'auth', action: 'credentialsExist', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_exists' } }, // @deprecated
54
-
55
- { verb: 'get', path: '/debug/_nodeVersion', controller: 'debug', action: 'nodeVersion' },
56
- { verb: 'post', path: '/debug/_post', controller: 'debug', action: 'post' },
57
- { verb: 'post', path: '/debug/_enable', controller: 'debug', action: 'enable' },
58
- { verb: 'post', path: '/debug/_disable', controller: 'debug', action: 'disable' },
70
+ {
71
+ verb: "get",
72
+ path: "/users/_me",
73
+ controller: "auth",
74
+ action: "getCurrentUser",
75
+ deprecated: {
76
+ since: "2.4.0",
77
+ message: "Use this route instead: http://kuzzle:7512/_me",
78
+ },
79
+ }, // @deprecated
80
+ {
81
+ verb: "get",
82
+ path: "/users/_me/_rights",
83
+ controller: "auth",
84
+ action: "getMyRights",
85
+ deprecated: {
86
+ since: "2.4.0",
87
+ message: "Use this route instead: http://kuzzle:7512/_me/_rights",
88
+ },
89
+ }, // @deprecated
90
+ {
91
+ verb: "get",
92
+ path: "/credentials/:strategy/_me",
93
+ controller: "auth",
94
+ action: "getMyCredentials",
95
+ deprecated: {
96
+ since: "2.4.0",
97
+ message:
98
+ "Use this route instead: http://kuzzle:7512/_me/credentials/:strategy",
99
+ },
100
+ }, // @deprecated
101
+ {
102
+ verb: "get",
103
+ path: "/credentials/:strategy/_me/_exists",
104
+ controller: "auth",
105
+ action: "credentialsExist",
106
+ deprecated: {
107
+ since: "2.4.0",
108
+ message:
109
+ "Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_exists",
110
+ },
111
+ }, // @deprecated
59
112
 
113
+ {
114
+ verb: "get",
115
+ path: "/debug/_nodeVersion",
116
+ controller: "debug",
117
+ action: "nodeVersion",
118
+ },
119
+ { verb: "post", path: "/debug/_post", controller: "debug", action: "post" },
120
+ {
121
+ verb: "post",
122
+ path: "/debug/_enable",
123
+ controller: "debug",
124
+ action: "enable",
125
+ },
126
+ {
127
+ verb: "post",
128
+ path: "/debug/_disable",
129
+ controller: "debug",
130
+ action: "disable",
131
+ },
60
132
 
61
133
  // We need to expose a GET method for "login" action in order to make authentication protocol like Oauth2 or CAS work:
62
- { verb: 'get', path: '/_login/:strategy', controller: 'auth', action: 'login' },
63
-
64
- { verb: 'get', path: '/:index/:collection/_export', controller: 'document', action: 'export' },
65
- { verb: 'get', path: '/:index/:collection/_exists', controller: 'collection', action: 'exists' },
66
- { verb: 'get', path: '/:index/:collection/_mapping', controller: 'collection', action: 'getMapping' },
67
- { verb: 'get', path: '/:index/:collection/_search', controller: 'document', action: 'search' },
68
- { verb: 'get', path: '/:index/:collection/_specifications', controller: 'collection', action: 'getSpecifications' },
69
- { verb: 'get', path: '/validations/_scroll/:scrollId', controller: 'collection', action: 'scrollSpecifications' },
70
- { verb: 'get', path: '/:index/_list', controller: 'collection', action: 'list' },
71
-
72
- { verb: 'post', path: '/admin/_refreshIndexCache', controller: 'admin', action: 'refreshIndexCache' },
73
- { verb: 'post', path: '/admin/_resetCache', controller: 'admin', action: 'resetCache' },
74
- { verb: 'post', path: '/admin/_resetSecurity', controller: 'admin', action: 'resetSecurity' },
75
- { verb: 'post', path: '/admin/_resetDatabase', controller: 'admin', action: 'resetDatabase' },
76
- { verb: 'post', path: '/admin/_resetKuzzleData', controller: 'admin', action: 'resetKuzzleData' },
77
- { verb: 'post', path: '/admin/_dump', controller: 'admin', action: 'dump' },
78
- { verb: 'post', path: '/admin/_shutdown/', controller: 'admin', action: 'shutdown' },
79
- { verb: 'post', path: '/admin/_loadFixtures', controller: 'admin', action: 'loadFixtures' },
80
- { verb: 'post', path: '/admin/_loadMappings', controller: 'admin', action: 'loadMappings' },
81
- { verb: 'post', path: '/admin/_loadSecurities', controller: 'admin', action: 'loadSecurities' },
82
-
83
- { verb: 'get', path: '/:index/:collection/:_id', controller: 'document', action: 'get', openapi: OpenApiDocumentGet },
84
- { verb: 'get', path: '/:index/:collection/_mGet', controller: 'document', action: 'mGet' },
85
- { verb: 'get', path: '/:index/:collection/:_id/_exists', controller: 'document', action: 'exists', openapi: OpenApiDocumentExists },
86
- { verb: 'post', path: '/:index/:collection/_mExists', controller: 'document', action: 'mExists' },
87
- { verb: 'get', path: '/_scroll/:scrollId', controller: 'document', action: 'scroll', openapi: OpenApiDocumentScroll },
88
-
89
- { verb: 'get', path: '/:index/_exists', controller: 'index', action: 'exists' },
90
- { verb: 'get', path: '/:index/_autoRefresh', controller: 'index', action: 'getAutoRefresh' },
91
- { verb: 'get', path: '/_list', controller: 'index', action: 'list' },
92
- { verb: 'get', path: '/_storageStats', controller: 'index', action: 'stats' },
93
-
94
- { verb: 'get', path: '/_listSubscriptions', controller: 'realtime', action: 'list' },
95
-
96
- { verb: 'get', path: '/profiles/:_id', controller: 'security', action: 'getProfile' },
97
- { verb: 'get', path: '/profiles/:_id/_rights', controller: 'security', action: 'getProfileRights' },
98
- { verb: 'get', path: '/roles/:_id', controller: 'security', action: 'getRole' },
99
- { verb: 'get', path: '/users/:_id', controller: 'security', action: 'getUser' },
100
- { verb: 'get', path: '/users/:_id/_strategies', controller: 'security', action: 'getUserStrategies' },
101
- { verb: 'get', path: '/users/_mGet', controller: 'security', action: 'mGetUsers' },
102
- { verb: 'get', path: '/users/:_id/_rights', controller: 'security', action: 'getUserRights' },
103
- { verb: 'get', path: '/profiles/_mapping', controller: 'security', action: 'getProfileMapping' },
104
- { verb: 'get', path: '/roles/_mapping', controller: 'security', action: 'getRoleMapping' },
105
- { verb: 'get', path: '/users/_mapping', controller: 'security', action: 'getUserMapping' },
106
- { verb: 'get', path: '/users/_scroll/:scrollId', controller: 'security', action: 'scrollUsers' },
107
- { verb: 'get', path: '/credentials/:strategy/:_id', controller: 'security', action: 'getCredentials' },
108
- { verb: 'get', path: '/credentials/:strategy/:_id/_byId', controller: 'security', action: 'getCredentialsById' },
109
- { verb: 'get', path: '/credentials/:strategy/:_id/_exists', controller: 'security', action: 'hasCredentials' },
110
- { verb: 'get', path: '/credentials/:strategy/_fields', controller: 'security', action: 'getCredentialFields' },
111
- { verb: 'get', path: '/credentials/_fields', controller: 'security', action: 'getAllCredentialFields' },
112
- { verb: 'get', path: '/profiles/_scroll/:scrollId', controller: 'security', action: 'scrollProfiles' },
113
-
114
- { verb: 'get', path: '/_adminExists', controller: 'server', action: 'adminExists' },
115
- { verb: 'get', path: '/_getAllStats', controller: 'server', action: 'getAllStats', deprecated: { since: 'auto-version', message: 'Use this route instead: http://kuzzle:7512/_metrics' } }, // @deprecated
116
- { verb: 'get', path: '/_getConfig', controller: 'server', action: 'getConfig' },
117
- { verb: 'get', path: '/_capabilities', controller: 'server', action: 'capabilities' },
118
- { verb: 'get', path: '/_getLastStats', controller: 'server', action: 'getLastStats', deprecated: { since: 'auto-version', message: 'Use this route instead: http://kuzzle:7512/_metrics' } }, // @deprecated
119
- { verb: 'get', path: '/_getStats', controller: 'server', action: 'getStats', deprecated: { since: 'auto-version', message: 'Use this route instead: http://kuzzle:7512/_metrics' } }, // @deprecated
120
- { verb: 'get', path: '/', controller: 'server', action: 'info' },
121
- { verb: 'get', path: '/_healthCheck', controller: 'server', action: 'healthCheck' },
122
- { verb: 'get', path: '/_serverInfo', controller: 'server', action: 'info' },
123
- { verb: 'get', path: '/_now', controller: 'server', action: 'now' },
124
- { verb: 'get', path: '/_publicApi', controller: 'server', action: 'publicApi', deprecated: { since: '2.5.0', message: 'Use this route instead: http://kuzzle:7512/_openapi' } }, // @deprecated
125
- { verb: 'get', path: '/_openapi', controller: 'server', action: 'openapi' },
126
- { verb: 'get', path: '/_metrics', controller: 'server', action: 'metrics' },
127
-
128
- { verb: 'get', path: '/ms/_bitcount/:_id', controller: 'ms', action: 'bitcount' },
129
- { verb: 'get', path: '/ms/_bitpos/:_id', controller: 'ms', action: 'bitpos' },
130
- { verb: 'get', path: '/ms/_dbsize', controller: 'ms', action: 'dbsize' },
131
- { verb: 'get', path: '/ms/_getbit/:_id', controller: 'ms', action: 'getbit' },
132
- { verb: 'get', path: '/ms/_getrange/:_id', controller: 'ms', action: 'getrange' },
133
- { verb: 'get', path: '/ms/_exists', controller: 'ms', action: 'exists' },
134
- { verb: 'get', path: '/ms/_geodist/:_id/:member1/:member2', controller: 'ms', action: 'geodist' },
135
- { verb: 'get', path: '/ms/_geohash/:_id', controller: 'ms', action: 'geohash' },
136
- { verb: 'get', path: '/ms/_geopos/:_id', controller: 'ms', action: 'geopos' },
137
- { verb: 'get', path: '/ms/_georadius/:_id', controller: 'ms', action: 'georadius' },
138
- { verb: 'get', path: '/ms/_georadiusbymember/:_id', controller: 'ms', action: 'georadiusbymember' },
139
- { verb: 'get', path: '/ms/_hexists/:_id/:field', controller: 'ms', action: 'hexists' },
140
- { verb: 'get', path: '/ms/_hget/:_id/:field', controller: 'ms', action: 'hget' },
141
- { verb: 'get', path: '/ms/_hgetall/:_id', controller: 'ms', action: 'hgetall' },
142
- { verb: 'get', path: '/ms/_hkeys/:_id', controller: 'ms', action: 'hkeys' },
143
- { verb: 'get', path: '/ms/_hlen/:_id', controller: 'ms', action: 'hlen' },
144
- { verb: 'get', path: '/ms/_hmget/:_id', controller: 'ms', action: 'hmget' },
145
- { verb: 'get', path: '/ms/_hscan/:_id', controller: 'ms', action: 'hscan' },
146
- { verb: 'get', path: '/ms/_hstrlen/:_id/:field', controller: 'ms', action: 'hstrlen' },
147
- { verb: 'get', path: '/ms/_hvals/:_id', controller: 'ms', action: 'hvals' },
148
- { verb: 'get', path: '/ms/_keys/:pattern', controller: 'ms', action: 'keys' },
149
- { verb: 'get', path: '/ms/_lindex/:_id/:idx', controller: 'ms', action: 'lindex' },
150
- { verb: 'get', path: '/ms/_llen/:_id', controller: 'ms', action: 'llen' },
151
- { verb: 'get', path: '/ms/_lrange/:_id', controller: 'ms', action: 'lrange' },
152
- { verb: 'get', path: '/ms/_mget', controller: 'ms', action: 'mget' },
153
- { verb: 'get', path: '/ms/_object/:_id', controller: 'ms', action: 'object' },
154
- { verb: 'get', path: '/ms/_pfcount', controller: 'ms', action: 'pfcount' },
155
- { verb: 'get', path: '/ms/_ping', controller: 'ms', action: 'ping' },
156
- { verb: 'get', path: '/ms/_pttl/:_id', controller: 'ms', action: 'pttl' },
157
- { verb: 'get', path: '/ms/_randomkey', controller: 'ms', action: 'randomkey' },
158
- { verb: 'get', path: '/ms/_scan', controller: 'ms', action: 'scan' },
159
- { verb: 'get', path: '/ms/_scard/:_id', controller: 'ms', action: 'scard' },
160
- { verb: 'get', path: '/ms/_sdiff/:_id', controller: 'ms', action: 'sdiff' },
161
- { verb: 'get', path: '/ms/_sinter', controller: 'ms', action: 'sinter' },
162
- { verb: 'get', path: '/ms/_sismember/:_id/:member', controller: 'ms', action: 'sismember' },
163
- { verb: 'get', path: '/ms/_smembers/:_id', controller: 'ms', action: 'smembers' },
164
- { verb: 'get', path: '/ms/_srandmember/:_id', controller: 'ms', action: 'srandmember' },
165
- { verb: 'get', path: '/ms/_sscan/:_id', controller: 'ms', action: 'sscan' },
166
- { verb: 'get', path: '/ms/_strlen/:_id', controller: 'ms', action: 'strlen' },
167
- { verb: 'get', path: '/ms/_sunion', controller: 'ms', action: 'sunion' },
168
- { verb: 'get', path: '/ms/_time', controller: 'ms', action: 'time' },
169
- { verb: 'get', path: '/ms/_ttl/:_id', controller: 'ms', action: 'ttl' },
170
- { verb: 'get', path: '/ms/_type/:_id', controller: 'ms', action: 'type' },
171
- { verb: 'get', path: '/ms/_zcard/:_id', controller: 'ms', action: 'zcard' },
172
- { verb: 'get', path: '/ms/_zcount/:_id', controller: 'ms', action: 'zcount' },
173
- { verb: 'get', path: '/ms/_zlexcount/:_id', controller: 'ms', action: 'zlexcount' },
174
- { verb: 'get', path: '/ms/_zrange/:_id', controller: 'ms', action: 'zrange' },
175
- { verb: 'get', path: '/ms/_zrangebylex/:_id', controller: 'ms', action: 'zrangebylex' },
176
- { verb: 'get', path: '/ms/_zrevrangebylex/:_id', controller: 'ms', action: 'zrevrangebylex' },
177
- { verb: 'get', path: '/ms/_zrangebyscore/:_id', controller: 'ms', action: 'zrangebyscore' },
178
- { verb: 'get', path: '/ms/_zrank/:_id/:member', controller: 'ms', action: 'zrank' },
179
- { verb: 'get', path: '/ms/_zrevrange/:_id', controller: 'ms', action: 'zrevrange' },
180
- { verb: 'get', path: '/ms/_zrevrangebyscore/:_id', controller: 'ms', action: 'zrevrangebyscore' },
181
- { verb: 'get', path: '/ms/_zrevrank/:_id/:member', controller: 'ms', action: 'zrevrank' },
182
- { verb: 'get', path: '/ms/_zscan/:_id', controller: 'ms', action: 'zscan' },
183
- { verb: 'get', path: '/ms/_zscore/:_id/:member', controller: 'ms', action: 'zscore' },
184
- { verb: 'get', path: '/ms/:_id', controller: 'ms', action: 'get' },
185
- { verb: 'get', path: '/cluster/_status', controller: 'cluster', action: 'status' },
134
+ {
135
+ verb: "get",
136
+ path: "/_login/:strategy",
137
+ controller: "auth",
138
+ action: "login",
139
+ },
140
+
141
+ {
142
+ verb: "get",
143
+ path: "/:index/:collection/_export",
144
+ controller: "document",
145
+ action: "export",
146
+ },
147
+ {
148
+ verb: "get",
149
+ path: "/:index/:collection/_exists",
150
+ controller: "collection",
151
+ action: "exists",
152
+ },
153
+ {
154
+ verb: "get",
155
+ path: "/:index/:collection/_mapping",
156
+ controller: "collection",
157
+ action: "getMapping",
158
+ },
159
+ {
160
+ verb: "get",
161
+ path: "/:index/:collection/_search",
162
+ controller: "document",
163
+ action: "search",
164
+ },
165
+ {
166
+ verb: "get",
167
+ path: "/:index/:collection/_specifications",
168
+ controller: "collection",
169
+ action: "getSpecifications",
170
+ },
171
+ {
172
+ verb: "get",
173
+ path: "/validations/_scroll/:scrollId",
174
+ controller: "collection",
175
+ action: "scrollSpecifications",
176
+ },
177
+ {
178
+ verb: "get",
179
+ path: "/:index/_list",
180
+ controller: "collection",
181
+ action: "list",
182
+ },
183
+
184
+ {
185
+ verb: "post",
186
+ path: "/admin/_refreshIndexCache",
187
+ controller: "admin",
188
+ action: "refreshIndexCache",
189
+ },
190
+ {
191
+ verb: "post",
192
+ path: "/admin/_resetCache",
193
+ controller: "admin",
194
+ action: "resetCache",
195
+ },
196
+ {
197
+ verb: "post",
198
+ path: "/admin/_resetSecurity",
199
+ controller: "admin",
200
+ action: "resetSecurity",
201
+ },
202
+ {
203
+ verb: "post",
204
+ path: "/admin/_resetDatabase",
205
+ controller: "admin",
206
+ action: "resetDatabase",
207
+ },
208
+ {
209
+ verb: "post",
210
+ path: "/admin/_resetKuzzleData",
211
+ controller: "admin",
212
+ action: "resetKuzzleData",
213
+ },
214
+ { verb: "post", path: "/admin/_dump", controller: "admin", action: "dump" },
215
+ {
216
+ verb: "post",
217
+ path: "/admin/_shutdown/",
218
+ controller: "admin",
219
+ action: "shutdown",
220
+ },
221
+ {
222
+ verb: "post",
223
+ path: "/admin/_loadFixtures",
224
+ controller: "admin",
225
+ action: "loadFixtures",
226
+ },
227
+ {
228
+ verb: "post",
229
+ path: "/admin/_loadMappings",
230
+ controller: "admin",
231
+ action: "loadMappings",
232
+ },
233
+ {
234
+ verb: "post",
235
+ path: "/admin/_loadSecurities",
236
+ controller: "admin",
237
+ action: "loadSecurities",
238
+ },
239
+
240
+ {
241
+ verb: "get",
242
+ path: "/:index/:collection/:_id",
243
+ controller: "document",
244
+ action: "get",
245
+ openapi: OpenApiDocumentGet,
246
+ },
247
+ {
248
+ verb: "get",
249
+ path: "/:index/:collection/_mGet",
250
+ controller: "document",
251
+ action: "mGet",
252
+ },
253
+ {
254
+ verb: "get",
255
+ path: "/:index/:collection/:_id/_exists",
256
+ controller: "document",
257
+ action: "exists",
258
+ openapi: OpenApiDocumentExists,
259
+ },
260
+ {
261
+ verb: "post",
262
+ path: "/:index/:collection/_mExists",
263
+ controller: "document",
264
+ action: "mExists",
265
+ },
266
+ {
267
+ verb: "get",
268
+ path: "/_scroll/:scrollId",
269
+ controller: "document",
270
+ action: "scroll",
271
+ openapi: OpenApiDocumentScroll,
272
+ },
273
+
274
+ {
275
+ verb: "get",
276
+ path: "/:index/_exists",
277
+ controller: "index",
278
+ action: "exists",
279
+ },
280
+ {
281
+ verb: "get",
282
+ path: "/:index/_autoRefresh",
283
+ controller: "index",
284
+ action: "getAutoRefresh",
285
+ },
286
+ { verb: "get", path: "/_list", controller: "index", action: "list" },
287
+ { verb: "get", path: "/_storageStats", controller: "index", action: "stats" },
288
+
289
+ {
290
+ verb: "get",
291
+ path: "/_listSubscriptions",
292
+ controller: "realtime",
293
+ action: "list",
294
+ },
295
+
296
+ {
297
+ verb: "get",
298
+ path: "/profiles/:_id",
299
+ controller: "security",
300
+ action: "getProfile",
301
+ },
302
+ {
303
+ verb: "get",
304
+ path: "/profiles/:_id/_rights",
305
+ controller: "security",
306
+ action: "getProfileRights",
307
+ },
308
+ {
309
+ verb: "get",
310
+ path: "/roles/:_id",
311
+ controller: "security",
312
+ action: "getRole",
313
+ },
314
+ {
315
+ verb: "get",
316
+ path: "/users/:_id",
317
+ controller: "security",
318
+ action: "getUser",
319
+ },
320
+ {
321
+ verb: "get",
322
+ path: "/users/:_id/_strategies",
323
+ controller: "security",
324
+ action: "getUserStrategies",
325
+ },
326
+ {
327
+ verb: "get",
328
+ path: "/users/_mGet",
329
+ controller: "security",
330
+ action: "mGetUsers",
331
+ },
332
+ {
333
+ verb: "get",
334
+ path: "/users/:_id/_rights",
335
+ controller: "security",
336
+ action: "getUserRights",
337
+ },
338
+ {
339
+ verb: "get",
340
+ path: "/profiles/_mapping",
341
+ controller: "security",
342
+ action: "getProfileMapping",
343
+ },
344
+ {
345
+ verb: "get",
346
+ path: "/roles/_mapping",
347
+ controller: "security",
348
+ action: "getRoleMapping",
349
+ },
350
+ {
351
+ verb: "get",
352
+ path: "/users/_mapping",
353
+ controller: "security",
354
+ action: "getUserMapping",
355
+ },
356
+ {
357
+ verb: "get",
358
+ path: "/users/_scroll/:scrollId",
359
+ controller: "security",
360
+ action: "scrollUsers",
361
+ },
362
+ {
363
+ verb: "get",
364
+ path: "/credentials/:strategy/:_id",
365
+ controller: "security",
366
+ action: "getCredentials",
367
+ },
368
+ {
369
+ verb: "get",
370
+ path: "/credentials/:strategy/:_id/_byId",
371
+ controller: "security",
372
+ action: "getCredentialsById",
373
+ },
374
+ {
375
+ verb: "get",
376
+ path: "/credentials/:strategy/:_id/_exists",
377
+ controller: "security",
378
+ action: "hasCredentials",
379
+ },
380
+ {
381
+ verb: "get",
382
+ path: "/credentials/:strategy/_fields",
383
+ controller: "security",
384
+ action: "getCredentialFields",
385
+ },
386
+ {
387
+ verb: "get",
388
+ path: "/credentials/_fields",
389
+ controller: "security",
390
+ action: "getAllCredentialFields",
391
+ },
392
+ {
393
+ verb: "get",
394
+ path: "/profiles/_scroll/:scrollId",
395
+ controller: "security",
396
+ action: "scrollProfiles",
397
+ },
186
398
 
399
+ {
400
+ verb: "get",
401
+ path: "/_adminExists",
402
+ controller: "server",
403
+ action: "adminExists",
404
+ },
405
+ {
406
+ verb: "get",
407
+ path: "/_getAllStats",
408
+ controller: "server",
409
+ action: "getAllStats",
410
+ deprecated: {
411
+ since: "auto-version",
412
+ message: "Use this route instead: http://kuzzle:7512/_metrics",
413
+ },
414
+ }, // @deprecated
415
+ {
416
+ verb: "get",
417
+ path: "/_getConfig",
418
+ controller: "server",
419
+ action: "getConfig",
420
+ },
421
+ {
422
+ verb: "get",
423
+ path: "/_capabilities",
424
+ controller: "server",
425
+ action: "capabilities",
426
+ },
427
+ {
428
+ verb: "get",
429
+ path: "/_getLastStats",
430
+ controller: "server",
431
+ action: "getLastStats",
432
+ deprecated: {
433
+ since: "auto-version",
434
+ message: "Use this route instead: http://kuzzle:7512/_metrics",
435
+ },
436
+ }, // @deprecated
437
+ {
438
+ verb: "get",
439
+ path: "/_getStats",
440
+ controller: "server",
441
+ action: "getStats",
442
+ deprecated: {
443
+ since: "auto-version",
444
+ message: "Use this route instead: http://kuzzle:7512/_metrics",
445
+ },
446
+ }, // @deprecated
447
+ { verb: "get", path: "/", controller: "server", action: "info" },
448
+ {
449
+ verb: "get",
450
+ path: "/_healthCheck",
451
+ controller: "server",
452
+ action: "healthCheck",
453
+ },
454
+ { verb: "get", path: "/_serverInfo", controller: "server", action: "info" },
455
+ { verb: "get", path: "/_now", controller: "server", action: "now" },
456
+ {
457
+ verb: "get",
458
+ path: "/_publicApi",
459
+ controller: "server",
460
+ action: "publicApi",
461
+ deprecated: {
462
+ since: "2.5.0",
463
+ message: "Use this route instead: http://kuzzle:7512/_openapi",
464
+ },
465
+ }, // @deprecated
466
+ { verb: "get", path: "/_openapi", controller: "server", action: "openapi" },
467
+ { verb: "get", path: "/_metrics", controller: "server", action: "metrics" },
468
+
469
+ {
470
+ verb: "get",
471
+ path: "/ms/_bitcount/:_id",
472
+ controller: "ms",
473
+ action: "bitcount",
474
+ },
475
+ { verb: "get", path: "/ms/_bitpos/:_id", controller: "ms", action: "bitpos" },
476
+ { verb: "get", path: "/ms/_dbsize", controller: "ms", action: "dbsize" },
477
+ { verb: "get", path: "/ms/_getbit/:_id", controller: "ms", action: "getbit" },
478
+ {
479
+ verb: "get",
480
+ path: "/ms/_getrange/:_id",
481
+ controller: "ms",
482
+ action: "getrange",
483
+ },
484
+ { verb: "get", path: "/ms/_exists", controller: "ms", action: "exists" },
485
+ {
486
+ verb: "get",
487
+ path: "/ms/_geodist/:_id/:member1/:member2",
488
+ controller: "ms",
489
+ action: "geodist",
490
+ },
491
+ {
492
+ verb: "get",
493
+ path: "/ms/_geohash/:_id",
494
+ controller: "ms",
495
+ action: "geohash",
496
+ },
497
+ { verb: "get", path: "/ms/_geopos/:_id", controller: "ms", action: "geopos" },
498
+ {
499
+ verb: "get",
500
+ path: "/ms/_georadius/:_id",
501
+ controller: "ms",
502
+ action: "georadius",
503
+ },
504
+ {
505
+ verb: "get",
506
+ path: "/ms/_georadiusbymember/:_id",
507
+ controller: "ms",
508
+ action: "georadiusbymember",
509
+ },
510
+ {
511
+ verb: "get",
512
+ path: "/ms/_hexists/:_id/:field",
513
+ controller: "ms",
514
+ action: "hexists",
515
+ },
516
+ {
517
+ verb: "get",
518
+ path: "/ms/_hget/:_id/:field",
519
+ controller: "ms",
520
+ action: "hget",
521
+ },
522
+ {
523
+ verb: "get",
524
+ path: "/ms/_hgetall/:_id",
525
+ controller: "ms",
526
+ action: "hgetall",
527
+ },
528
+ { verb: "get", path: "/ms/_hkeys/:_id", controller: "ms", action: "hkeys" },
529
+ { verb: "get", path: "/ms/_hlen/:_id", controller: "ms", action: "hlen" },
530
+ { verb: "get", path: "/ms/_hmget/:_id", controller: "ms", action: "hmget" },
531
+ { verb: "get", path: "/ms/_hscan/:_id", controller: "ms", action: "hscan" },
532
+ {
533
+ verb: "get",
534
+ path: "/ms/_hstrlen/:_id/:field",
535
+ controller: "ms",
536
+ action: "hstrlen",
537
+ },
538
+ { verb: "get", path: "/ms/_hvals/:_id", controller: "ms", action: "hvals" },
539
+ { verb: "get", path: "/ms/_keys/:pattern", controller: "ms", action: "keys" },
540
+ {
541
+ verb: "get",
542
+ path: "/ms/_lindex/:_id/:idx",
543
+ controller: "ms",
544
+ action: "lindex",
545
+ },
546
+ { verb: "get", path: "/ms/_llen/:_id", controller: "ms", action: "llen" },
547
+ { verb: "get", path: "/ms/_lrange/:_id", controller: "ms", action: "lrange" },
548
+ { verb: "get", path: "/ms/_mget", controller: "ms", action: "mget" },
549
+ { verb: "get", path: "/ms/_object/:_id", controller: "ms", action: "object" },
550
+ { verb: "get", path: "/ms/_pfcount", controller: "ms", action: "pfcount" },
551
+ { verb: "get", path: "/ms/_ping", controller: "ms", action: "ping" },
552
+ { verb: "get", path: "/ms/_pttl/:_id", controller: "ms", action: "pttl" },
553
+ {
554
+ verb: "get",
555
+ path: "/ms/_randomkey",
556
+ controller: "ms",
557
+ action: "randomkey",
558
+ },
559
+ { verb: "get", path: "/ms/_scan", controller: "ms", action: "scan" },
560
+ { verb: "get", path: "/ms/_scard/:_id", controller: "ms", action: "scard" },
561
+ { verb: "get", path: "/ms/_sdiff/:_id", controller: "ms", action: "sdiff" },
562
+ { verb: "get", path: "/ms/_sinter", controller: "ms", action: "sinter" },
563
+ {
564
+ verb: "get",
565
+ path: "/ms/_sismember/:_id/:member",
566
+ controller: "ms",
567
+ action: "sismember",
568
+ },
569
+ {
570
+ verb: "get",
571
+ path: "/ms/_smembers/:_id",
572
+ controller: "ms",
573
+ action: "smembers",
574
+ },
575
+ {
576
+ verb: "get",
577
+ path: "/ms/_srandmember/:_id",
578
+ controller: "ms",
579
+ action: "srandmember",
580
+ },
581
+ { verb: "get", path: "/ms/_sscan/:_id", controller: "ms", action: "sscan" },
582
+ { verb: "get", path: "/ms/_strlen/:_id", controller: "ms", action: "strlen" },
583
+ { verb: "get", path: "/ms/_sunion", controller: "ms", action: "sunion" },
584
+ { verb: "get", path: "/ms/_time", controller: "ms", action: "time" },
585
+ { verb: "get", path: "/ms/_ttl/:_id", controller: "ms", action: "ttl" },
586
+ { verb: "get", path: "/ms/_type/:_id", controller: "ms", action: "type" },
587
+ { verb: "get", path: "/ms/_zcard/:_id", controller: "ms", action: "zcard" },
588
+ { verb: "get", path: "/ms/_zcount/:_id", controller: "ms", action: "zcount" },
589
+ {
590
+ verb: "get",
591
+ path: "/ms/_zlexcount/:_id",
592
+ controller: "ms",
593
+ action: "zlexcount",
594
+ },
595
+ { verb: "get", path: "/ms/_zrange/:_id", controller: "ms", action: "zrange" },
596
+ {
597
+ verb: "get",
598
+ path: "/ms/_zrangebylex/:_id",
599
+ controller: "ms",
600
+ action: "zrangebylex",
601
+ },
602
+ {
603
+ verb: "get",
604
+ path: "/ms/_zrevrangebylex/:_id",
605
+ controller: "ms",
606
+ action: "zrevrangebylex",
607
+ },
608
+ {
609
+ verb: "get",
610
+ path: "/ms/_zrangebyscore/:_id",
611
+ controller: "ms",
612
+ action: "zrangebyscore",
613
+ },
614
+ {
615
+ verb: "get",
616
+ path: "/ms/_zrank/:_id/:member",
617
+ controller: "ms",
618
+ action: "zrank",
619
+ },
620
+ {
621
+ verb: "get",
622
+ path: "/ms/_zrevrange/:_id",
623
+ controller: "ms",
624
+ action: "zrevrange",
625
+ },
626
+ {
627
+ verb: "get",
628
+ path: "/ms/_zrevrangebyscore/:_id",
629
+ controller: "ms",
630
+ action: "zrevrangebyscore",
631
+ },
632
+ {
633
+ verb: "get",
634
+ path: "/ms/_zrevrank/:_id/:member",
635
+ controller: "ms",
636
+ action: "zrevrank",
637
+ },
638
+ { verb: "get", path: "/ms/_zscan/:_id", controller: "ms", action: "zscan" },
639
+ {
640
+ verb: "get",
641
+ path: "/ms/_zscore/:_id/:member",
642
+ controller: "ms",
643
+ action: "zscore",
644
+ },
645
+ { verb: "get", path: "/ms/:_id", controller: "ms", action: "get" },
646
+ {
647
+ verb: "get",
648
+ path: "/cluster/_status",
649
+ controller: "cluster",
650
+ action: "status",
651
+ },
187
652
 
188
653
  // POST
189
- { verb: 'post', path: '/_login/:strategy', controller: 'auth', action: 'login' },
190
- { verb: 'post', path: '/_logout', controller: 'auth', action: 'logout' },
191
- { verb: 'post', path: '/_checkToken', controller: 'auth', action: 'checkToken' },
192
- { verb: 'post', path: '/_refreshToken', controller: 'auth', action: 'refreshToken' },
193
- { verb: 'post', path: '/_me/credentials/:strategy/_create', controller: 'auth', action: 'createMyCredentials' },
194
- { verb: 'post', path: '/_me/credentials/:strategy/_validate', controller: 'auth', action: 'validateMyCredentials' },
195
-
196
- { verb: 'post', path: '/credentials/:strategy/_me/_create', controller: 'auth', action: 'createMyCredentials', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_create' } }, // @deprecated
197
- { verb: 'post', path: '/credentials/:strategy/_me/_validate', controller: 'auth', action: 'validateMyCredentials', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_validate' } }, // @deprecated
198
-
199
- { verb: 'post', path: '/:index/:collection/_validateSpecifications', controller: 'collection', action: 'validateSpecifications' },
200
- { verb: 'post', path: '/validations/_search', controller: 'collection', action: 'searchSpecifications' },
201
-
202
- { verb: 'post', path: '/:index/:collection/_bulk', controller: 'bulk', action: 'import' },
203
-
204
- { verb: 'post', path: '/:index/:collection/_mWrite', controller: 'bulk', action: 'mWrite' },
205
- { verb: 'post', path: '/:index/:collection/_write', controller: 'bulk', action: 'write' },
206
-
207
- { verb: 'post', path: '/:index/:collection/_refresh', controller: 'collection', action: 'refresh' },
208
- { verb: 'post', path: '/_security/:collection/_refresh', controller: 'security', action: 'refresh' },
209
-
210
- { verb: 'post', path: '/:index/_create', controller: 'index', action: 'create' },
211
-
212
- { verb: 'post', path: '/:index/:collection/_count', controller: 'document', action: 'count', openapi: OpenApiDocumentCount },
213
- { verb: 'post', path: '/:index/:collection/_create', controller: 'document', action: 'create', openapi: OpenApiDocumentCreate },
214
- { verb: 'post', path: '/:index/:collection/:_id/_create', controller: 'document', action: 'create' },
215
- { verb: 'post', path: '/:index/:collection/_publish', controller: 'realtime', action: 'publish' },
216
- { verb: 'post', path: '/:index/:collection/_export', controller: 'document', action: 'export' },
217
- { verb: 'post', path: '/:index/:collection/_search', controller: 'document', action: 'search' },
218
- { verb: 'post', path: '/:index/:collection/_mGet', controller: 'document', action: 'mGet' },
219
- { verb: 'post', path: '/:index/:collection/_mCreate', controller: 'document', action: 'mCreate' },
220
- { verb: 'post', path: '/:index/:collection/_mUpsert', controller: 'document', action: 'mUpsert' },
221
- { verb: 'post', path: '/:index/:collection/:_id/_upsert', controller: 'document', action: 'upsert' },
222
- { verb: 'post', path: '/:index/:collection/_validate', controller: 'document', action: 'validate', openapi: OpenApiDocumentValidate },
223
-
224
- { verb: 'post', path: '/_createFirstAdmin/:_id', controller: 'security', action: 'createFirstAdmin' },
225
- { verb: 'post', path: '/_createFirstAdmin', controller: 'security', action: 'createFirstAdmin' },
226
-
227
- { verb: 'post', path: '/credentials/:strategy/:_id/_create', controller: 'security', action: 'createCredentials' },
228
- { verb: 'post', path: '/profiles/:_id/_create', controller: 'security', action: 'createProfile' },
229
- { verb: 'post', path: '/roles/:_id/_create', controller: 'security', action: 'createRole' },
230
- { verb: 'post', path: '/users/_createRestricted', controller: 'security', action: 'createRestrictedUser' },
231
- { verb: 'post', path: '/users/:_id/_createRestricted', controller: 'security', action: 'createRestrictedUser' },
232
- { verb: 'post', path: '/users/_create', controller: 'security', action: 'createUser' },
233
- { verb: 'post', path: '/users/:_id/_create', controller: 'security', action: 'createUser' },
234
- { verb: 'post', path: '/profiles/_mDelete', controller: 'security', action: 'mDeleteProfiles' },
235
- { verb: 'post', path: '/roles/_mDelete', controller: 'security', action: 'mDeleteRoles' },
236
- { verb: 'post', path: '/users/_mDelete', controller: 'security', action: 'mDeleteUsers' },
237
- { verb: 'post', path: '/profiles/_mGet', controller: 'security', action: 'mGetProfiles' },
238
- { verb: 'post', path: '/users/_mGet', controller: 'security', action: 'mGetUsers' },
239
- { verb: 'post', path: '/roles/_mGet', controller: 'security', action: 'mGetRoles' },
240
- { verb: 'post', path: '/profiles/_search', controller: 'security', action: 'searchProfiles' },
241
- { verb: 'post', path: '/roles/_search', controller: 'security', action: 'searchRoles' },
242
- { verb: 'post', path: '/users/_search', controller: 'security', action: 'searchUsers' },
243
- { verb: 'post', path: '/credentials/:strategy/users/_search', controller: 'security', action: 'searchUsersByCredentials' },
244
- { verb: 'post', path: '/users/:_id/_upsert', controller: 'security', action: 'upsertUser', openapi: OpenApiSecurityUpsertUser },
245
- { verb: 'post', path: '/credentials/:strategy/:_id/_validate', controller: 'security', action: 'validateCredentials' },
246
- { verb: 'post', path: '/_checkRights', controller: 'auth', action: 'checkRights' },
247
- { verb: 'post', path: '/_checkRights/:userId', controller: 'security', action: 'checkRights' },
248
-
249
- { verb: 'post', path: '/users/:userId/api-keys/_create', controller: 'security', action: 'createApiKey' },
250
- { verb: 'post', path: '/users/:userId/api-keys/_search', controller: 'security', action: 'searchApiKeys' },
251
-
252
- { verb: 'post', path: '/api-keys/_create', controller: 'auth', action: 'createApiKey' },
253
- { verb: 'post', path: '/api-keys/_search', controller: 'auth', action: 'searchApiKeys' },
254
-
255
- { verb: 'post', path: '/ms/_append/:_id', controller: 'ms', action: 'append' },
256
- { verb: 'post', path: '/ms/_bgrewriteaof', controller: 'ms', action: 'bgrewriteaof' },
257
- { verb: 'post', path: '/ms/_bgsave', controller: 'ms', action: 'bgsave' },
258
- { verb: 'post', path: '/ms/_bitop/:_id', controller: 'ms', action: 'bitop' },
259
- { verb: 'post', path: '/ms/_decr/:_id', controller: 'ms', action: 'decr' },
260
- { verb: 'post', path: '/ms/_decrby/:_id', controller: 'ms', action: 'decrby' },
261
- { verb: 'post', path: '/ms/_expire/:_id', controller: 'ms', action: 'expire' },
262
- { verb: 'post', path: '/ms/_expireat/:_id', controller: 'ms', action: 'expireat' },
263
- { verb: 'post', path: '/ms/_flushdb', controller: 'ms', action: 'flushdb' },
264
- { verb: 'post', path: '/ms/_geoadd/:_id', controller: 'ms', action: 'geoadd' },
265
- { verb: 'post', path: '/ms/_getset/:_id', controller: 'ms', action: 'getset' },
266
- { verb: 'post', path: '/ms/_hincrby/:_id', controller: 'ms', action: 'hincrby' },
267
- { verb: 'post', path: '/ms/_hincrbyfloat/:_id', controller: 'ms', action: 'hincrbyfloat' },
268
- { verb: 'post', path: '/ms/_hmset/:_id', controller: 'ms', action: 'hmset' },
269
- { verb: 'post', path: '/ms/_hset/:_id', controller: 'ms', action: 'hset' },
270
- { verb: 'post', path: '/ms/_hsetnx/:_id', controller: 'ms', action: 'hsetnx' },
271
- { verb: 'post', path: '/ms/_incr/:_id', controller: 'ms', action: 'incr' },
272
- { verb: 'post', path: '/ms/_incrby/:_id', controller: 'ms', action: 'incrby' },
273
- { verb: 'post', path: '/ms/_incrbyfloat/:_id', controller: 'ms', action: 'incrbyfloat' },
274
- { verb: 'post', path: '/ms/_linsert/:_id', controller: 'ms', action: 'linsert' },
275
- { verb: 'post', path: '/ms/_lpop/:_id', controller: 'ms', action: 'lpop' },
276
- { verb: 'post', path: '/ms/_lpush/:_id', controller: 'ms', action: 'lpush' },
277
- { verb: 'post', path: '/ms/_lpushx/:_id', controller: 'ms', action: 'lpushx' },
278
- { verb: 'post', path: '/ms/_lset/:_id', controller: 'ms', action: 'lset' },
279
- { verb: 'post', path: '/ms/_ltrim/:_id', controller: 'ms', action: 'ltrim' },
280
- { verb: 'post', path: '/ms/_mexecute', controller: 'ms', action: 'mexecute' },
281
- { verb: 'post', path: '/ms/_mset', controller: 'ms', action: 'mset' },
282
- { verb: 'post', path: '/ms/_msetnx', controller: 'ms', action: 'msetnx' },
283
- { verb: 'post', path: '/ms/_persist/:_id', controller: 'ms', action: 'persist' },
284
- { verb: 'post', path: '/ms/_pexpire/:_id', controller: 'ms', action: 'pexpire' },
285
- { verb: 'post', path: '/ms/_pexpireat/:_id', controller: 'ms', action: 'pexpireat' },
286
- { verb: 'post', path: '/ms/_pfadd/:_id', controller: 'ms', action: 'pfadd' },
287
- { verb: 'post', path: '/ms/_pfmerge/:_id', controller: 'ms', action: 'pfmerge' },
288
- { verb: 'post', path: '/ms/_psetex/:_id', controller: 'ms', action: 'psetex' },
289
- { verb: 'post', path: '/ms/_rename/:_id', controller: 'ms', action: 'rename' },
290
- { verb: 'post', path: '/ms/_renamenx/:_id', controller: 'ms', action: 'renamenx' },
291
- { verb: 'post', path: '/ms/_rpop/:_id', controller: 'ms', action: 'rpop' },
292
- { verb: 'post', path: '/ms/_rpoplpush', controller: 'ms', action: 'rpoplpush' },
293
- { verb: 'post', path: '/ms/_rpush/:_id', controller: 'ms', action: 'rpush' },
294
- { verb: 'post', path: '/ms/_rpushx/:_id', controller: 'ms', action: 'rpushx' },
295
- { verb: 'post', path: '/ms/_sadd/:_id', controller: 'ms', action: 'sadd' },
296
- { verb: 'post', path: '/ms/_sdiffstore/:_id', controller: 'ms', action: 'sdiffstore' },
297
- { verb: 'post', path: '/ms/_set/:_id', controller: 'ms', action: 'set' },
298
- { verb: 'post', path: '/ms/_setex/:_id', controller: 'ms', action: 'setex' },
299
- { verb: 'post', path: '/ms/_setnx/:_id', controller: 'ms', action: 'setnx' },
300
- { verb: 'post', path: '/ms/_sinterstore', controller: 'ms', action: 'sinterstore' },
301
- { verb: 'post', path: '/ms/_smove/:_id', controller: 'ms', action: 'smove' },
302
- { verb: 'post', path: '/ms/_sort/:_id', controller: 'ms', action: 'sort' },
303
- { verb: 'post', path: '/ms/_spop/:_id', controller: 'ms', action: 'spop' },
304
- { verb: 'post', path: '/ms/_sunionstore', controller: 'ms', action: 'sunionstore' },
305
- { verb: 'post', path: '/ms/_touch', controller: 'ms', action: 'touch' },
306
- { verb: 'post', path: '/ms/_zadd/:_id', controller: 'ms', action: 'zadd' },
307
- { verb: 'post', path: '/ms/_zincrby/:_id', controller: 'ms', action: 'zincrby' },
308
- { verb: 'post', path: '/ms/_zinterstore/:_id', controller: 'ms', action: 'zinterstore' },
309
- { verb: 'post', path: '/ms/_zunionstore/:_id', controller: 'ms', action: 'zunionstore' },
654
+ {
655
+ verb: "post",
656
+ path: "/_login/:strategy",
657
+ controller: "auth",
658
+ action: "login",
659
+ },
660
+ { verb: "post", path: "/_logout", controller: "auth", action: "logout" },
661
+ {
662
+ verb: "post",
663
+ path: "/_checkToken",
664
+ controller: "auth",
665
+ action: "checkToken",
666
+ },
667
+ {
668
+ verb: "post",
669
+ path: "/_refreshToken",
670
+ controller: "auth",
671
+ action: "refreshToken",
672
+ },
673
+ {
674
+ verb: "post",
675
+ path: "/_me/credentials/:strategy/_create",
676
+ controller: "auth",
677
+ action: "createMyCredentials",
678
+ },
679
+ {
680
+ verb: "post",
681
+ path: "/_me/credentials/:strategy/_validate",
682
+ controller: "auth",
683
+ action: "validateMyCredentials",
684
+ },
310
685
 
686
+ {
687
+ verb: "post",
688
+ path: "/credentials/:strategy/_me/_create",
689
+ controller: "auth",
690
+ action: "createMyCredentials",
691
+ deprecated: {
692
+ since: "2.4.0",
693
+ message:
694
+ "Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_create",
695
+ },
696
+ }, // @deprecated
697
+ {
698
+ verb: "post",
699
+ path: "/credentials/:strategy/_me/_validate",
700
+ controller: "auth",
701
+ action: "validateMyCredentials",
702
+ deprecated: {
703
+ since: "2.4.0",
704
+ message:
705
+ "Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_validate",
706
+ },
707
+ }, // @deprecated
311
708
 
312
- // DELETE
313
- { verb: 'delete', path: '/_me/credentials/:strategy', controller: 'auth', action: 'deleteMyCredentials' },
709
+ {
710
+ verb: "post",
711
+ path: "/:index/:collection/_validateSpecifications",
712
+ controller: "collection",
713
+ action: "validateSpecifications",
714
+ },
715
+ {
716
+ verb: "post",
717
+ path: "/validations/_search",
718
+ controller: "collection",
719
+ action: "searchSpecifications",
720
+ },
721
+
722
+ {
723
+ verb: "post",
724
+ path: "/:index/:collection/_bulk",
725
+ controller: "bulk",
726
+ action: "import",
727
+ },
314
728
 
315
- { verb: 'delete', path: '/credentials/:strategy/_me', controller: 'auth', action: 'deleteMyCredentials', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me/credentials/:strategy' } }, // @deprecated
729
+ {
730
+ verb: "post",
731
+ path: "/:index/:collection/_mWrite",
732
+ controller: "bulk",
733
+ action: "mWrite",
734
+ },
735
+ {
736
+ verb: "post",
737
+ path: "/:index/:collection/_write",
738
+ controller: "bulk",
739
+ action: "write",
740
+ },
316
741
 
317
- { verb: 'delete', path: '/:index/:collection/_specifications', controller: 'collection', action: 'deleteSpecifications' },
318
- { verb: 'delete', path: '/:index/:collection/_truncate', controller: 'collection', action: 'truncate' },
742
+ {
743
+ verb: "post",
744
+ path: "/:index/:collection/_refresh",
745
+ controller: "collection",
746
+ action: "refresh",
747
+ },
748
+ {
749
+ verb: "post",
750
+ path: "/_security/:collection/_refresh",
751
+ controller: "security",
752
+ action: "refresh",
753
+ },
319
754
 
320
- { verb: 'delete', path: '/:index/:collection/:_id', controller: 'document', action: 'delete', openapi: OpenApiDocumentDelete },
321
- { verb: 'delete', path: '/:index/:collection/:_id/_fields', controller: 'document', action: 'deleteFields' },
322
- { verb: 'delete', path: '/:index/:collection/_query', controller: 'document', action: 'deleteByQuery', openapi: OpenApiDocumentDeleteByQuery },
323
- { verb: 'delete', path: '/:index/:collection/_bulk/_query', controller: 'bulk', action: 'deleteByQuery' },
755
+ {
756
+ verb: "post",
757
+ path: "/:index/_create",
758
+ controller: "index",
759
+ action: "create",
760
+ },
324
761
 
325
- { verb: 'delete', path: '/:index/:collection/_mDelete', controller: 'document', action: 'mDelete' },
762
+ {
763
+ verb: "post",
764
+ path: "/:index/:collection/_count",
765
+ controller: "document",
766
+ action: "count",
767
+ openapi: OpenApiDocumentCount,
768
+ },
769
+ {
770
+ verb: "post",
771
+ path: "/:index/:collection/_create",
772
+ controller: "document",
773
+ action: "create",
774
+ openapi: OpenApiDocumentCreate,
775
+ },
776
+ {
777
+ verb: "post",
778
+ path: "/:index/:collection/:_id/_create",
779
+ controller: "document",
780
+ action: "create",
781
+ },
782
+ {
783
+ verb: "post",
784
+ path: "/:index/:collection/_publish",
785
+ controller: "realtime",
786
+ action: "publish",
787
+ },
788
+ {
789
+ verb: "post",
790
+ path: "/:index/:collection/_export",
791
+ controller: "document",
792
+ action: "export",
793
+ },
794
+ {
795
+ verb: "post",
796
+ path: "/:index/:collection/_search",
797
+ controller: "document",
798
+ action: "search",
799
+ },
800
+ {
801
+ verb: "post",
802
+ path: "/:index/:collection/_mGet",
803
+ controller: "document",
804
+ action: "mGet",
805
+ },
806
+ {
807
+ verb: "post",
808
+ path: "/:index/:collection/_mCreate",
809
+ controller: "document",
810
+ action: "mCreate",
811
+ },
812
+ {
813
+ verb: "post",
814
+ path: "/:index/:collection/_mUpsert",
815
+ controller: "document",
816
+ action: "mUpsert",
817
+ },
818
+ {
819
+ verb: "post",
820
+ path: "/:index/:collection/:_id/_upsert",
821
+ controller: "document",
822
+ action: "upsert",
823
+ },
824
+ {
825
+ verb: "post",
826
+ path: "/:index/:collection/_validate",
827
+ controller: "document",
828
+ action: "validate",
829
+ openapi: OpenApiDocumentValidate,
830
+ },
326
831
 
327
- { verb: 'delete', path: '/:index', controller: 'index', action: 'delete' },
328
- { verb: 'delete', path: '/_mDelete', controller: 'index', action: 'mDelete' },
329
- { verb: 'delete', path: '/_mdelete', controller: 'index', action: 'mDelete', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_mDelete' } }, // @deprecated
832
+ {
833
+ verb: "post",
834
+ path: "/_createFirstAdmin/:_id",
835
+ controller: "security",
836
+ action: "createFirstAdmin",
837
+ },
838
+ {
839
+ verb: "post",
840
+ path: "/_createFirstAdmin",
841
+ controller: "security",
842
+ action: "createFirstAdmin",
843
+ },
330
844
 
331
- { verb: 'delete', path: '/:index/:collection', controller: 'collection', action: 'delete' },
845
+ {
846
+ verb: "post",
847
+ path: "/credentials/:strategy/:_id/_create",
848
+ controller: "security",
849
+ action: "createCredentials",
850
+ },
851
+ {
852
+ verb: "post",
853
+ path: "/profiles/:_id/_create",
854
+ controller: "security",
855
+ action: "createProfile",
856
+ },
857
+ {
858
+ verb: "post",
859
+ path: "/roles/:_id/_create",
860
+ controller: "security",
861
+ action: "createRole",
862
+ },
863
+ {
864
+ verb: "post",
865
+ path: "/users/_createRestricted",
866
+ controller: "security",
867
+ action: "createRestrictedUser",
868
+ },
869
+ {
870
+ verb: "post",
871
+ path: "/users/:_id/_createRestricted",
872
+ controller: "security",
873
+ action: "createRestrictedUser",
874
+ },
875
+ {
876
+ verb: "post",
877
+ path: "/users/_create",
878
+ controller: "security",
879
+ action: "createUser",
880
+ },
881
+ {
882
+ verb: "post",
883
+ path: "/users/:_id/_create",
884
+ controller: "security",
885
+ action: "createUser",
886
+ },
887
+ {
888
+ verb: "post",
889
+ path: "/profiles/_mDelete",
890
+ controller: "security",
891
+ action: "mDeleteProfiles",
892
+ },
893
+ {
894
+ verb: "post",
895
+ path: "/roles/_mDelete",
896
+ controller: "security",
897
+ action: "mDeleteRoles",
898
+ },
899
+ {
900
+ verb: "post",
901
+ path: "/users/_mDelete",
902
+ controller: "security",
903
+ action: "mDeleteUsers",
904
+ },
905
+ {
906
+ verb: "post",
907
+ path: "/profiles/_mGet",
908
+ controller: "security",
909
+ action: "mGetProfiles",
910
+ },
911
+ {
912
+ verb: "post",
913
+ path: "/users/_mGet",
914
+ controller: "security",
915
+ action: "mGetUsers",
916
+ },
917
+ {
918
+ verb: "post",
919
+ path: "/roles/_mGet",
920
+ controller: "security",
921
+ action: "mGetRoles",
922
+ },
923
+ {
924
+ verb: "post",
925
+ path: "/profiles/_search",
926
+ controller: "security",
927
+ action: "searchProfiles",
928
+ },
929
+ {
930
+ verb: "post",
931
+ path: "/roles/_search",
932
+ controller: "security",
933
+ action: "searchRoles",
934
+ },
935
+ {
936
+ verb: "post",
937
+ path: "/users/_search",
938
+ controller: "security",
939
+ action: "searchUsers",
940
+ },
941
+ {
942
+ verb: "post",
943
+ path: "/credentials/:strategy/users/_search",
944
+ controller: "security",
945
+ action: "searchUsersByCredentials",
946
+ },
947
+ {
948
+ verb: "post",
949
+ path: "/users/:_id/_upsert",
950
+ controller: "security",
951
+ action: "upsertUser",
952
+ openapi: OpenApiSecurityUpsertUser,
953
+ },
954
+ {
955
+ verb: "post",
956
+ path: "/credentials/:strategy/:_id/_validate",
957
+ controller: "security",
958
+ action: "validateCredentials",
959
+ },
960
+ {
961
+ verb: "post",
962
+ path: "/_checkRights",
963
+ controller: "auth",
964
+ action: "checkRights",
965
+ },
966
+ {
967
+ verb: "post",
968
+ path: "/_checkRights/:userId",
969
+ controller: "security",
970
+ action: "checkRights",
971
+ },
332
972
 
333
- { verb: 'delete', path: '/profiles/:_id', controller: 'security', action: 'deleteProfile' },
334
- { verb: 'delete', path: '/roles/:_id', controller: 'security', action: 'deleteRole' },
335
- { verb: 'delete', path: '/users/:_id', controller: 'security', action: 'deleteUser' },
336
- { verb: 'delete', path: '/credentials/:strategy/:_id', controller: 'security', action: 'deleteCredentials' },
337
- { verb: 'delete', path: '/users/:_id/tokens', controller: 'security', action: 'revokeTokens' },
973
+ {
974
+ verb: "post",
975
+ path: "/users/:userId/api-keys/_create",
976
+ controller: "security",
977
+ action: "createApiKey",
978
+ },
979
+ {
980
+ verb: "post",
981
+ path: "/users/:userId/api-keys/_search",
982
+ controller: "security",
983
+ action: "searchApiKeys",
984
+ },
338
985
 
339
- { verb: 'delete', path: '/ms', controller: 'ms', action: 'del' },
340
- { verb: 'delete', path: '/ms/_hdel/:_id', controller: 'ms', action: 'hdel' },
341
- { verb: 'delete', path: '/ms/_lrem/:_id', controller: 'ms', action: 'lrem' },
342
- { verb: 'delete', path: '/ms/_srem/:_id', controller: 'ms', action: 'srem' },
343
- { verb: 'delete', path: '/ms/_zrem/:_id', controller: 'ms', action: 'zrem' },
344
- { verb: 'delete', path: '/ms/_zremrangebylex/:_id', controller: 'ms', action: 'zremrangebylex' },
345
- { verb: 'delete', path: '/ms/_zremrangebyrank/:_id', controller: 'ms', action: 'zremrangebyrank' },
346
- { verb: 'delete', path: '/ms/_zremrangebyscore/:_id', controller: 'ms', action: 'zremrangebyscore' },
986
+ {
987
+ verb: "post",
988
+ path: "/api-keys/_create",
989
+ controller: "auth",
990
+ action: "createApiKey",
991
+ },
992
+ {
993
+ verb: "post",
994
+ path: "/api-keys/_search",
995
+ controller: "auth",
996
+ action: "searchApiKeys",
997
+ },
998
+
999
+ {
1000
+ verb: "post",
1001
+ path: "/ms/_append/:_id",
1002
+ controller: "ms",
1003
+ action: "append",
1004
+ },
1005
+ {
1006
+ verb: "post",
1007
+ path: "/ms/_bgrewriteaof",
1008
+ controller: "ms",
1009
+ action: "bgrewriteaof",
1010
+ },
1011
+ { verb: "post", path: "/ms/_bgsave", controller: "ms", action: "bgsave" },
1012
+ { verb: "post", path: "/ms/_bitop/:_id", controller: "ms", action: "bitop" },
1013
+ { verb: "post", path: "/ms/_decr/:_id", controller: "ms", action: "decr" },
1014
+ {
1015
+ verb: "post",
1016
+ path: "/ms/_decrby/:_id",
1017
+ controller: "ms",
1018
+ action: "decrby",
1019
+ },
1020
+ {
1021
+ verb: "post",
1022
+ path: "/ms/_expire/:_id",
1023
+ controller: "ms",
1024
+ action: "expire",
1025
+ },
1026
+ {
1027
+ verb: "post",
1028
+ path: "/ms/_expireat/:_id",
1029
+ controller: "ms",
1030
+ action: "expireat",
1031
+ },
1032
+ { verb: "post", path: "/ms/_flushdb", controller: "ms", action: "flushdb" },
1033
+ {
1034
+ verb: "post",
1035
+ path: "/ms/_geoadd/:_id",
1036
+ controller: "ms",
1037
+ action: "geoadd",
1038
+ },
1039
+ {
1040
+ verb: "post",
1041
+ path: "/ms/_getset/:_id",
1042
+ controller: "ms",
1043
+ action: "getset",
1044
+ },
1045
+ {
1046
+ verb: "post",
1047
+ path: "/ms/_hincrby/:_id",
1048
+ controller: "ms",
1049
+ action: "hincrby",
1050
+ },
1051
+ {
1052
+ verb: "post",
1053
+ path: "/ms/_hincrbyfloat/:_id",
1054
+ controller: "ms",
1055
+ action: "hincrbyfloat",
1056
+ },
1057
+ { verb: "post", path: "/ms/_hmset/:_id", controller: "ms", action: "hmset" },
1058
+ { verb: "post", path: "/ms/_hset/:_id", controller: "ms", action: "hset" },
1059
+ {
1060
+ verb: "post",
1061
+ path: "/ms/_hsetnx/:_id",
1062
+ controller: "ms",
1063
+ action: "hsetnx",
1064
+ },
1065
+ { verb: "post", path: "/ms/_incr/:_id", controller: "ms", action: "incr" },
1066
+ {
1067
+ verb: "post",
1068
+ path: "/ms/_incrby/:_id",
1069
+ controller: "ms",
1070
+ action: "incrby",
1071
+ },
1072
+ {
1073
+ verb: "post",
1074
+ path: "/ms/_incrbyfloat/:_id",
1075
+ controller: "ms",
1076
+ action: "incrbyfloat",
1077
+ },
1078
+ {
1079
+ verb: "post",
1080
+ path: "/ms/_linsert/:_id",
1081
+ controller: "ms",
1082
+ action: "linsert",
1083
+ },
1084
+ { verb: "post", path: "/ms/_lpop/:_id", controller: "ms", action: "lpop" },
1085
+ { verb: "post", path: "/ms/_lpush/:_id", controller: "ms", action: "lpush" },
1086
+ {
1087
+ verb: "post",
1088
+ path: "/ms/_lpushx/:_id",
1089
+ controller: "ms",
1090
+ action: "lpushx",
1091
+ },
1092
+ { verb: "post", path: "/ms/_lset/:_id", controller: "ms", action: "lset" },
1093
+ { verb: "post", path: "/ms/_ltrim/:_id", controller: "ms", action: "ltrim" },
1094
+ { verb: "post", path: "/ms/_mexecute", controller: "ms", action: "mexecute" },
1095
+ { verb: "post", path: "/ms/_mset", controller: "ms", action: "mset" },
1096
+ { verb: "post", path: "/ms/_msetnx", controller: "ms", action: "msetnx" },
1097
+ {
1098
+ verb: "post",
1099
+ path: "/ms/_persist/:_id",
1100
+ controller: "ms",
1101
+ action: "persist",
1102
+ },
1103
+ {
1104
+ verb: "post",
1105
+ path: "/ms/_pexpire/:_id",
1106
+ controller: "ms",
1107
+ action: "pexpire",
1108
+ },
1109
+ {
1110
+ verb: "post",
1111
+ path: "/ms/_pexpireat/:_id",
1112
+ controller: "ms",
1113
+ action: "pexpireat",
1114
+ },
1115
+ { verb: "post", path: "/ms/_pfadd/:_id", controller: "ms", action: "pfadd" },
1116
+ {
1117
+ verb: "post",
1118
+ path: "/ms/_pfmerge/:_id",
1119
+ controller: "ms",
1120
+ action: "pfmerge",
1121
+ },
1122
+ {
1123
+ verb: "post",
1124
+ path: "/ms/_psetex/:_id",
1125
+ controller: "ms",
1126
+ action: "psetex",
1127
+ },
1128
+ {
1129
+ verb: "post",
1130
+ path: "/ms/_rename/:_id",
1131
+ controller: "ms",
1132
+ action: "rename",
1133
+ },
1134
+ {
1135
+ verb: "post",
1136
+ path: "/ms/_renamenx/:_id",
1137
+ controller: "ms",
1138
+ action: "renamenx",
1139
+ },
1140
+ { verb: "post", path: "/ms/_rpop/:_id", controller: "ms", action: "rpop" },
1141
+ {
1142
+ verb: "post",
1143
+ path: "/ms/_rpoplpush",
1144
+ controller: "ms",
1145
+ action: "rpoplpush",
1146
+ },
1147
+ { verb: "post", path: "/ms/_rpush/:_id", controller: "ms", action: "rpush" },
1148
+ {
1149
+ verb: "post",
1150
+ path: "/ms/_rpushx/:_id",
1151
+ controller: "ms",
1152
+ action: "rpushx",
1153
+ },
1154
+ { verb: "post", path: "/ms/_sadd/:_id", controller: "ms", action: "sadd" },
1155
+ {
1156
+ verb: "post",
1157
+ path: "/ms/_sdiffstore/:_id",
1158
+ controller: "ms",
1159
+ action: "sdiffstore",
1160
+ },
1161
+ { verb: "post", path: "/ms/_set/:_id", controller: "ms", action: "set" },
1162
+ { verb: "post", path: "/ms/_setex/:_id", controller: "ms", action: "setex" },
1163
+ { verb: "post", path: "/ms/_setnx/:_id", controller: "ms", action: "setnx" },
1164
+ {
1165
+ verb: "post",
1166
+ path: "/ms/_sinterstore",
1167
+ controller: "ms",
1168
+ action: "sinterstore",
1169
+ },
1170
+ { verb: "post", path: "/ms/_smove/:_id", controller: "ms", action: "smove" },
1171
+ { verb: "post", path: "/ms/_sort/:_id", controller: "ms", action: "sort" },
1172
+ { verb: "post", path: "/ms/_spop/:_id", controller: "ms", action: "spop" },
1173
+ {
1174
+ verb: "post",
1175
+ path: "/ms/_sunionstore",
1176
+ controller: "ms",
1177
+ action: "sunionstore",
1178
+ },
1179
+ { verb: "post", path: "/ms/_touch", controller: "ms", action: "touch" },
1180
+ { verb: "post", path: "/ms/_zadd/:_id", controller: "ms", action: "zadd" },
1181
+ {
1182
+ verb: "post",
1183
+ path: "/ms/_zincrby/:_id",
1184
+ controller: "ms",
1185
+ action: "zincrby",
1186
+ },
1187
+ {
1188
+ verb: "post",
1189
+ path: "/ms/_zinterstore/:_id",
1190
+ controller: "ms",
1191
+ action: "zinterstore",
1192
+ },
1193
+ {
1194
+ verb: "post",
1195
+ path: "/ms/_zunionstore/:_id",
1196
+ controller: "ms",
1197
+ action: "zunionstore",
1198
+ },
1199
+
1200
+ // DELETE
1201
+ {
1202
+ verb: "delete",
1203
+ path: "/_me/credentials/:strategy",
1204
+ controller: "auth",
1205
+ action: "deleteMyCredentials",
1206
+ },
347
1207
 
348
- { verb: 'delete', path: '/users/:userId/api-keys/:_id', controller: 'security', action: 'deleteApiKey' },
349
- { verb: 'delete', path: '/api-keys/:_id', controller: 'auth', action: 'deleteApiKey' },
1208
+ {
1209
+ verb: "delete",
1210
+ path: "/credentials/:strategy/_me",
1211
+ controller: "auth",
1212
+ action: "deleteMyCredentials",
1213
+ deprecated: {
1214
+ since: "2.4.0",
1215
+ message:
1216
+ "Use this route instead: http://kuzzle:7512/_me/credentials/:strategy",
1217
+ },
1218
+ }, // @deprecated
350
1219
 
1220
+ {
1221
+ verb: "delete",
1222
+ path: "/:index/:collection/_specifications",
1223
+ controller: "collection",
1224
+ action: "deleteSpecifications",
1225
+ },
1226
+ {
1227
+ verb: "delete",
1228
+ path: "/:index/:collection/_truncate",
1229
+ controller: "collection",
1230
+ action: "truncate",
1231
+ },
1232
+
1233
+ {
1234
+ verb: "delete",
1235
+ path: "/:index/:collection/:_id",
1236
+ controller: "document",
1237
+ action: "delete",
1238
+ openapi: OpenApiDocumentDelete,
1239
+ },
1240
+ {
1241
+ verb: "delete",
1242
+ path: "/:index/:collection/:_id/_fields",
1243
+ controller: "document",
1244
+ action: "deleteFields",
1245
+ },
1246
+ {
1247
+ verb: "delete",
1248
+ path: "/:index/:collection/_query",
1249
+ controller: "document",
1250
+ action: "deleteByQuery",
1251
+ openapi: OpenApiDocumentDeleteByQuery,
1252
+ },
1253
+ {
1254
+ verb: "delete",
1255
+ path: "/:index/:collection/_bulk/_query",
1256
+ controller: "bulk",
1257
+ action: "deleteByQuery",
1258
+ },
1259
+
1260
+ {
1261
+ verb: "delete",
1262
+ path: "/:index/:collection/_mDelete",
1263
+ controller: "document",
1264
+ action: "mDelete",
1265
+ },
1266
+
1267
+ { verb: "delete", path: "/:index", controller: "index", action: "delete" },
1268
+ { verb: "delete", path: "/_mDelete", controller: "index", action: "mDelete" },
1269
+ {
1270
+ verb: "delete",
1271
+ path: "/_mdelete",
1272
+ controller: "index",
1273
+ action: "mDelete",
1274
+ deprecated: {
1275
+ since: "2.4.0",
1276
+ message: "Use this route instead: http://kuzzle:7512/_mDelete",
1277
+ },
1278
+ }, // @deprecated
1279
+
1280
+ {
1281
+ verb: "delete",
1282
+ path: "/:index/:collection",
1283
+ controller: "collection",
1284
+ action: "delete",
1285
+ },
1286
+
1287
+ {
1288
+ verb: "delete",
1289
+ path: "/profiles/:_id",
1290
+ controller: "security",
1291
+ action: "deleteProfile",
1292
+ },
1293
+ {
1294
+ verb: "delete",
1295
+ path: "/roles/:_id",
1296
+ controller: "security",
1297
+ action: "deleteRole",
1298
+ },
1299
+ {
1300
+ verb: "delete",
1301
+ path: "/users/:_id",
1302
+ controller: "security",
1303
+ action: "deleteUser",
1304
+ },
1305
+ {
1306
+ verb: "delete",
1307
+ path: "/credentials/:strategy/:_id",
1308
+ controller: "security",
1309
+ action: "deleteCredentials",
1310
+ },
1311
+ {
1312
+ verb: "delete",
1313
+ path: "/users/:_id/tokens",
1314
+ controller: "security",
1315
+ action: "revokeTokens",
1316
+ },
1317
+
1318
+ { verb: "delete", path: "/ms", controller: "ms", action: "del" },
1319
+ { verb: "delete", path: "/ms/_hdel/:_id", controller: "ms", action: "hdel" },
1320
+ { verb: "delete", path: "/ms/_lrem/:_id", controller: "ms", action: "lrem" },
1321
+ { verb: "delete", path: "/ms/_srem/:_id", controller: "ms", action: "srem" },
1322
+ { verb: "delete", path: "/ms/_zrem/:_id", controller: "ms", action: "zrem" },
1323
+ {
1324
+ verb: "delete",
1325
+ path: "/ms/_zremrangebylex/:_id",
1326
+ controller: "ms",
1327
+ action: "zremrangebylex",
1328
+ },
1329
+ {
1330
+ verb: "delete",
1331
+ path: "/ms/_zremrangebyrank/:_id",
1332
+ controller: "ms",
1333
+ action: "zremrangebyrank",
1334
+ },
1335
+ {
1336
+ verb: "delete",
1337
+ path: "/ms/_zremrangebyscore/:_id",
1338
+ controller: "ms",
1339
+ action: "zremrangebyscore",
1340
+ },
1341
+
1342
+ {
1343
+ verb: "delete",
1344
+ path: "/users/:userId/api-keys/:_id",
1345
+ controller: "security",
1346
+ action: "deleteApiKey",
1347
+ },
1348
+ {
1349
+ verb: "delete",
1350
+ path: "/api-keys/:_id",
1351
+ controller: "auth",
1352
+ action: "deleteApiKey",
1353
+ },
351
1354
 
352
1355
  // PUT (idempotent)
353
- { verb: 'put', path: '/_me', controller: 'auth', action: 'updateSelf' },
354
- { verb: 'put', path: '/_me/credentials/:strategy/_update', controller: 'auth', action: 'updateMyCredentials' },
355
-
356
- { verb: 'put', path: '/_updateSelf', controller: 'auth', action: 'updateSelf', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me' } }, // @deprecated
357
- { verb: 'put', path: '/credentials/:strategy/_me/_update', controller: 'auth', action: 'updateMyCredentials', deprecated: { since: '2.4.0', message: 'Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_update' } }, // @deprecated
358
-
359
- { verb: 'put', path: '/:index/:collection', controller: 'collection', action: 'create' },
360
- { verb: 'post', path: '/:index/:collection', controller: 'collection', action: 'update' },
361
- { verb: 'put', path: '/:index/:collection/_mapping', controller: 'collection', action: 'updateMapping', deprecated: { since: '2.1.0', message: 'Use collection:update' } }, // @deprecated
362
-
363
- { verb: 'put', path: '/:index/:collection/_specifications', controller: 'collection', action: 'updateSpecifications' },
364
-
365
- { verb: 'put', path: '/:index/:collection/:_id', controller: 'document', action: 'createOrReplace', openapi: OpenApiDocumentCreateOrReplace },
366
- { verb: 'put', path: '/:index/:collection/_mCreateOrReplace', controller: 'document', action: 'mCreateOrReplace', openapi: OpenApiDocumentmCreateOrReplace },
367
- { verb: 'put', path: '/:index/:collection/:_id/_replace', controller: 'document', action: 'replace', openapi: OpenApiDocumentReplace },
368
- { verb: 'put', path: '/:index/:collection/_mReplace', controller: 'document', action: 'mReplace' },
369
- { verb: 'put', path: '/:index/:collection/_mUpdate', controller: 'document', action: 'mUpdate', deprecated: { since: '2.11.0', message: 'Use "document:mUpdate" route with PATCH instead of PUT' } }, // @deprecated
370
- { verb: 'put', path: '/:index/:collection/:_id/_update', controller: 'document', action: 'update', openapi: OpenApiDocumentUpdate, deprecated: { since: '2.11.0', message: 'Use "document:update" route with PATCH instead of PUT' } }, // @deprecated
371
- { verb: 'put', path: '/:index/:collection/:_id/_upsert', controller: 'document', action: 'upsert', deprecated: { since: '2.11.0', message: 'Use "document:upsert" route with POST instead of PUT' } }, // @deprecated
372
- { verb: 'put', path: '/:index/:collection/_query', controller: 'document', action: 'updateByQuery' },
373
-
374
- { verb: 'put', path: '/profiles/:_id', controller: 'security', action: 'createOrReplaceProfile' },
375
- { verb: 'put', path: '/roles/:_id', controller: 'security', action: 'createOrReplaceRole' },
376
- { verb: 'put', path: '/credentials/:strategy/:_id/_update', controller: 'security', action: 'updateCredentials', },
377
- { verb: 'put', path: '/profiles/:_id/_update', controller: 'security', action: 'updateProfile' },
378
- { verb: 'put', path: '/roles/:_id/_update', controller: 'security', action: 'updateRole' },
379
- { verb: 'put', path: '/users/:_id/_update', controller: 'security', action: 'updateUser' },
380
- { verb: 'put', path: '/users/:_id/_replace', controller: 'security', action: 'replaceUser' },
381
- { verb: 'put', path: '/profiles/_mapping', controller: 'security', action: 'updateProfileMapping' },
382
- { verb: 'put', path: '/roles/_mapping', controller: 'security', action: 'updateRoleMapping' },
383
- { verb: 'put', path: '/users/_mapping', controller: 'security', action: 'updateUserMapping' },
1356
+ { verb: "put", path: "/_me", controller: "auth", action: "updateSelf" },
1357
+ {
1358
+ verb: "put",
1359
+ path: "/_me/credentials/:strategy/_update",
1360
+ controller: "auth",
1361
+ action: "updateMyCredentials",
1362
+ },
1363
+
1364
+ {
1365
+ verb: "put",
1366
+ path: "/_updateSelf",
1367
+ controller: "auth",
1368
+ action: "updateSelf",
1369
+ deprecated: {
1370
+ since: "2.4.0",
1371
+ message: "Use this route instead: http://kuzzle:7512/_me",
1372
+ },
1373
+ }, // @deprecated
1374
+ {
1375
+ verb: "put",
1376
+ path: "/credentials/:strategy/_me/_update",
1377
+ controller: "auth",
1378
+ action: "updateMyCredentials",
1379
+ deprecated: {
1380
+ since: "2.4.0",
1381
+ message:
1382
+ "Use this route instead: http://kuzzle:7512/_me/credentials/:strategy/_update",
1383
+ },
1384
+ }, // @deprecated
1385
+
1386
+ {
1387
+ verb: "put",
1388
+ path: "/:index/:collection",
1389
+ controller: "collection",
1390
+ action: "create",
1391
+ },
1392
+ {
1393
+ verb: "post",
1394
+ path: "/:index/:collection",
1395
+ controller: "collection",
1396
+ action: "update",
1397
+ },
1398
+ {
1399
+ verb: "put",
1400
+ path: "/:index/:collection/_mapping",
1401
+ controller: "collection",
1402
+ action: "updateMapping",
1403
+ deprecated: { since: "2.1.0", message: "Use collection:update" },
1404
+ }, // @deprecated
1405
+
1406
+ {
1407
+ verb: "put",
1408
+ path: "/:index/:collection/_specifications",
1409
+ controller: "collection",
1410
+ action: "updateSpecifications",
1411
+ },
1412
+
1413
+ {
1414
+ verb: "put",
1415
+ path: "/:index/:collection/:_id",
1416
+ controller: "document",
1417
+ action: "createOrReplace",
1418
+ openapi: OpenApiDocumentCreateOrReplace,
1419
+ },
1420
+ {
1421
+ verb: "put",
1422
+ path: "/:index/:collection/_mCreateOrReplace",
1423
+ controller: "document",
1424
+ action: "mCreateOrReplace",
1425
+ openapi: OpenApiDocumentmCreateOrReplace,
1426
+ },
1427
+ {
1428
+ verb: "put",
1429
+ path: "/:index/:collection/:_id/_replace",
1430
+ controller: "document",
1431
+ action: "replace",
1432
+ openapi: OpenApiDocumentReplace,
1433
+ },
1434
+ {
1435
+ verb: "put",
1436
+ path: "/:index/:collection/_mReplace",
1437
+ controller: "document",
1438
+ action: "mReplace",
1439
+ },
1440
+ {
1441
+ verb: "put",
1442
+ path: "/:index/:collection/_mUpdate",
1443
+ controller: "document",
1444
+ action: "mUpdate",
1445
+ deprecated: {
1446
+ since: "2.11.0",
1447
+ message: 'Use "document:mUpdate" route with PATCH instead of PUT',
1448
+ },
1449
+ }, // @deprecated
1450
+ {
1451
+ verb: "put",
1452
+ path: "/:index/:collection/:_id/_update",
1453
+ controller: "document",
1454
+ action: "update",
1455
+ openapi: OpenApiDocumentUpdate,
1456
+ deprecated: {
1457
+ since: "2.11.0",
1458
+ message: 'Use "document:update" route with PATCH instead of PUT',
1459
+ },
1460
+ }, // @deprecated
1461
+ {
1462
+ verb: "put",
1463
+ path: "/:index/:collection/:_id/_upsert",
1464
+ controller: "document",
1465
+ action: "upsert",
1466
+ deprecated: {
1467
+ since: "2.11.0",
1468
+ message: 'Use "document:upsert" route with POST instead of PUT',
1469
+ },
1470
+ }, // @deprecated
1471
+ {
1472
+ verb: "put",
1473
+ path: "/:index/:collection/_query",
1474
+ controller: "document",
1475
+ action: "updateByQuery",
1476
+ },
1477
+
1478
+ {
1479
+ verb: "put",
1480
+ path: "/profiles/:_id",
1481
+ controller: "security",
1482
+ action: "createOrReplaceProfile",
1483
+ },
1484
+ {
1485
+ verb: "put",
1486
+ path: "/roles/:_id",
1487
+ controller: "security",
1488
+ action: "createOrReplaceRole",
1489
+ },
1490
+ {
1491
+ verb: "put",
1492
+ path: "/credentials/:strategy/:_id/_update",
1493
+ controller: "security",
1494
+ action: "updateCredentials",
1495
+ },
1496
+ {
1497
+ verb: "put",
1498
+ path: "/profiles/:_id/_update",
1499
+ controller: "security",
1500
+ action: "updateProfile",
1501
+ },
1502
+ {
1503
+ verb: "put",
1504
+ path: "/roles/:_id/_update",
1505
+ controller: "security",
1506
+ action: "updateRole",
1507
+ },
1508
+ {
1509
+ verb: "put",
1510
+ path: "/users/:_id/_update",
1511
+ controller: "security",
1512
+ action: "updateUser",
1513
+ },
1514
+ {
1515
+ verb: "put",
1516
+ path: "/users/:_id/_replace",
1517
+ controller: "security",
1518
+ action: "replaceUser",
1519
+ },
1520
+ {
1521
+ verb: "put",
1522
+ path: "/profiles/_mapping",
1523
+ controller: "security",
1524
+ action: "updateProfileMapping",
1525
+ },
1526
+ {
1527
+ verb: "put",
1528
+ path: "/roles/_mapping",
1529
+ controller: "security",
1530
+ action: "updateRoleMapping",
1531
+ },
1532
+ {
1533
+ verb: "put",
1534
+ path: "/users/_mapping",
1535
+ controller: "security",
1536
+ action: "updateUserMapping",
1537
+ },
384
1538
 
385
1539
  // PATCH
386
- { verb: 'patch', path: '/:index/:collection/_mUpdate', controller: 'document', action: 'mUpdate' },
387
- { verb: 'patch', path: '/:index/:collection/:_id/_update', controller: 'document', action: 'update' },
388
- { verb: 'patch', path: '/:index/:collection/_bulk/_query', controller: 'bulk', action: 'updateByQuery' },
1540
+ {
1541
+ verb: "patch",
1542
+ path: "/:index/:collection/_mUpdate",
1543
+ controller: "document",
1544
+ action: "mUpdate",
1545
+ },
1546
+ {
1547
+ verb: "patch",
1548
+ path: "/:index/:collection/:_id/_update",
1549
+ controller: "document",
1550
+ action: "update",
1551
+ },
1552
+ {
1553
+ verb: "patch",
1554
+ path: "/:index/:collection/_bulk/_query",
1555
+ controller: "bulk",
1556
+ action: "updateByQuery",
1557
+ },
389
1558
  ];
390
1559
 
391
1560
  for (const route of routes) {