Pārlūkot izejas kodu

[API] renaming search-template to search_template.

Name of the API should be a valid identifier.
Honza Král 11 gadi atpakaļ
vecāks
revīzija
ed842a88da

+ 1 - 1
rest-api-spec/api/search.template.json

@@ -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": {

+ 2 - 2
rest-api-spec/test/search/40_search_request_template.yaml

@@ -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 }
 
   - do:
-      search-template:
+      search_template:
         body: { "template" : { "query": { "match_{{template}}": {} } }, "params" : { "template" : "all" } }
 
   - match: { hits.total: 2 }