Skip to content

Commit

Permalink
Fix inconsistencies in the rest api specs for *_script (#26971)
Browse files Browse the repository at this point in the history
  • Loading branch information
olcbean authored and rjernst committed Oct 13, 2017
1 parent 01cda96 commit 4088dd0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public RestPutStoredScriptAction(Settings settings, RestController controller) {

controller.registerHandler(POST, "/_scripts/{id}", this);
controller.registerHandler(PUT, "/_scripts/{id}", this);
controller.registerHandler(POST, "/_scripts/{id}/{context}", this);
controller.registerHandler(PUT, "/_scripts/{id}/{context}", this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
"type" : "string",
"description" : "Script ID",
"required" : true
},
"lang" : {
"type" : "string",
"description" : "Script language",
"required" : true
}
},
"params" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
"type" : "string",
"description" : "Script ID",
"required" : true
},
"lang" : {
"type" : "string",
"description" : "Script language",
"required" : true
}
},
"params" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"description" : "Script ID",
"required" : true
},
"lang" : {
"context" : {
"type" : "string",
"description" : "Script language",
"required" : true
"description" : "Script context"
}
},
"params" : {
Expand Down

0 comments on commit 4088dd0

Please sign in to comment.