Skip to content

Commit f1de8c0

Browse files
Mpdreamzjavanna
authored andcommitted
Document PUT as the prefered HTTP method for index API (#45622)
Follow up from #42346. Since the `methods` array is in order of preference when calling the index API with an `{id}` we prefer to use the `PUT` http method.
1 parent b73a960 commit f1de8c0

File tree

1 file changed

+4
-4
lines changed
  • rest-api-spec/src/main/resources/rest-api-spec/api

1 file changed

+4
-4
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/index.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
{
1111
"path":"/{index}/_doc/{id}",
1212
"methods":[
13-
"POST",
14-
"PUT"
13+
"PUT",
14+
"POST"
1515
],
1616
"parts":{
1717
"id":{
@@ -60,8 +60,8 @@
6060
{
6161
"path":"/{index}/{type}/{id}",
6262
"methods":[
63-
"POST",
64-
"PUT"
63+
"PUT",
64+
"POST"
6565
],
6666
"parts":{
6767
"id":{

0 commit comments

Comments
 (0)