fixed the snapshot.create urls

This commit is contained in:
Spencer Alger
2014-01-17 09:09:55 -07:00
parent e4c6aab4ef
commit 3b15f5f309
2 changed files with 12 additions and 4 deletions

View File

@ -92,11 +92,7 @@ module.exports = {
'/{index}/_stats/search/{search_groups}',
'/{index}/_stats/fielddata/{fields}'
],
'cluster.createSnapshot': [
'/_snapshot/{repository}/{snapshot}/_create'
],
'snapshot.create': [
'/_snapshot/{repository}/{snapshot}',
'/_snapshot/{repository}/{snapshot}/_create'
]
};

View File

@ -4320,6 +4320,18 @@ api.snapshot.prototype.create = ca({
name: 'wait_for_completion'
}
},
url: {
fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
req: {
repository: {
type: 'string'
},
snapshot: {
type: 'string'
}
},
sortOrder: -2
},
method: 'POST'
});