diff --git a/features/support/api/http.js b/features/support/api/http.js index c242368c4e..e97c509bce 100644 --- a/features/support/api/http.js +++ b/features/support/api/http.js @@ -172,7 +172,7 @@ class HttpApi { let url = `${this.util.getIndex(index)}/${this.util.getCollection(collection)}/_write`; if (_id) { - url = `${this.util.getIndex(index)}/${this.util.getCollection(collection)}/${_id}/_write`; + url += `?_id=${_id}`; } const options = { diff --git a/lib/api/kuzzle.js b/lib/api/kuzzle.js index b2a89e601f..41a3b22ab6 100644 --- a/lib/api/kuzzle.js +++ b/lib/api/kuzzle.js @@ -177,7 +177,6 @@ class Kuzzle extends EventEmitter { this.router.init(); this.statistics.init(); - /** @type {RealtimeEngine} */ this.realtime = new Koncorde({ seed: this.config.internal.hash.seed, maxMinTerms: this.config.limits.subscriptionMinterms diff --git a/lib/config/httpRoutes.js b/lib/config/httpRoutes.js index c103db2d6e..8dbcc7fed6 100644 --- a/lib/config/httpRoutes.js +++ b/lib/config/httpRoutes.js @@ -165,7 +165,6 @@ module.exports = [ {verb: 'post', url: '/:index/:collection/_mWrite', controller: 'bulk', action: 'mWrite'}, {verb: 'post', url: '/:index/:collection/_write', controller: 'bulk', action: 'write'}, - {verb: 'post', url: '/:index/:collection/:_id/_write', controller: 'bulk', action: 'write'}, /* DEPRECATED - will be removed in v2 */ {verb: 'post', url: '/_getStats', controller: 'server', action: 'getStats'},