Browse Source

[DOCS] Add PUT example to `Date math in index names` (#60908)

Previously, all examples in this section were GET requests. This
demonstrates that other CRUD operations are also supported.
James Rodewig 5 years ago
parent
commit
d1bba8c556
1 changed files with 4 additions and 13 deletions
  1. 4 13
      docs/reference/api-conventions.asciidoc

+ 4 - 13
docs/reference/api-conventions.asciidoc

@@ -85,19 +85,10 @@ You must enclose date math index name expressions within angle brackets, and
 all special characters should be URI encoded. For example:
 
 [source,console]
-----------------------------------------------------------------------
-# GET /<logstash-{now/d}>/_search
-GET /%3Clogstash-%7Bnow%2Fd%7D%3E/_search
-{
-  "query" : {
-    "match": {
-      "test": "data"
-    }
-  }
-}
-----------------------------------------------------------------------
-// TEST[s/^/PUT logstash-2016.09.20\n/]
-// TEST[s/now/2016.09.20%7C%7C/]
+----
+# PUT /<my-index-{now/d}>
+PUT /%3Cmy-index-%7Bnow%2Fd%7D%3E
+----
 
 [NOTE]
 .Percent encoding of date math characters