Name of the API should be a valid identifier.
@@ -1,5 +1,5 @@
{
- "search-template": {
+ "search_template": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-search.html",
"methods": ["GET", "POST"],
"url": {
@@ -17,13 +17,13 @@
indices.refresh: {}
- do:
- search-template:
+ search_template:
body: { "template" : { "query": { "term": { "text": { "value": "{{template}}" } } } }, "params": { "template": "value1" } }
- match: { hits.total: 1 }
body: { "template" : { "query": { "match_{{template}}": {} } }, "params" : { "template" : "all" } }
- match: { hits.total: 2 }