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.
This commit is contained in:
parent
b73a9604c1
commit
f1de8c0193
|
@ -10,8 +10,8 @@
|
|||
{
|
||||
"path":"/{index}/_doc/{id}",
|
||||
"methods":[
|
||||
"POST",
|
||||
"PUT"
|
||||
"PUT",
|
||||
"POST"
|
||||
],
|
||||
"parts":{
|
||||
"id":{
|
||||
|
@ -60,8 +60,8 @@
|
|||
{
|
||||
"path":"/{index}/{type}/{id}",
|
||||
"methods":[
|
||||
"POST",
|
||||
"PUT"
|
||||
"PUT",
|
||||
"POST"
|
||||
],
|
||||
"parts":{
|
||||
"id":{
|
||||
|
|
Loading…
Reference in New Issue