From c472d4a3058e6d571535ed7f6ac5239b7da6caf3 Mon Sep 17 00:00:00 2001 From: rustyedges Date: Sat, 31 May 2014 16:50:31 +0000 Subject: [PATCH 1/2] PUT method for snapshot.create Default method should be PUT as using POST results in an error...InvalidIndexNameException[[_snapshot] Invalid index name [_snapshot], must not start with '_'] --- src/lib/apis/1_2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/apis/1_2.js b/src/lib/apis/1_2.js index 4a5267679..dd7f6e0b2 100644 --- a/src/lib/apis/1_2.js +++ b/src/lib/apis/1_2.js @@ -5029,7 +5029,7 @@ api.snapshot.prototype.create = ca({ } } }, - method: 'POST' + method: 'PUT' }); /** @@ -5515,4 +5515,4 @@ api.create = ca.proxy(api.index, { transform: function (params) { params.op_type = 'create'; } -}); \ No newline at end of file +}); From 4f1b2c25cbb0e6930ea741da4356e35d8fdb430c Mon Sep 17 00:00:00 2001 From: rustyedges Date: Sat, 31 May 2014 16:52:08 +0000 Subject: [PATCH 2/2] PUT method for snapshot.create Default method should be PUT as using POST results in an error...InvalidIndexNameException[[_snapshot] Invalid index name [_snapshot], must not start with '_'] --- src/lib/apis/1_x.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/apis/1_x.js b/src/lib/apis/1_x.js index e1d66b204..19d89d475 100644 --- a/src/lib/apis/1_x.js +++ b/src/lib/apis/1_x.js @@ -5070,7 +5070,7 @@ api.snapshot.prototype.create = ca({ } } }, - method: 'POST' + method: 'PUT' }); /** @@ -5556,4 +5556,4 @@ api.create = ca.proxy(api.index, { transform: function (params) { params.op_type = 'create'; } -}); \ No newline at end of file +});