Skip to content

Commit 93ff5fe

Browse files
committed
Amend index API spec
The endpoints that accept an id can be called with either PUT or POST. The endpoints that don't accept an id can only be called with POST.
1 parent e93308c commit 93ff5fe

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,6 +10,7 @@
1010
{
1111
"path":"/{index}/_doc/{id}",
1212
"methods":[
13+
"POST",
1314
"PUT"
1415
],
1516
"parts":{
@@ -26,8 +27,7 @@
2627
{
2728
"path":"/{index}/_doc",
2829
"methods":[
29-
"POST",
30-
"PUT"
30+
"POST"
3131
],
3232
"parts":{
3333
"index":{
@@ -39,8 +39,7 @@
3939
{
4040
"path":"/{index}/{type}",
4141
"methods":[
42-
"POST",
43-
"PUT"
42+
"POST"
4443
],
4544
"parts":{
4645
"index":{
@@ -61,6 +60,7 @@
6160
{
6261
"path":"/{index}/{type}/{id}",
6362
"methods":[
63+
"POST",
6464
"PUT"
6565
],
6666
"parts":{

0 commit comments

Comments
 (0)