Fix inconsistencies in the rest api specs for *_script (#26971)

This commit is contained in:
olcbean 2017-10-13 20:20:34 +02:00 committed by Ryan Ernst
parent 2310c8e2e2
commit bb013c60b5
4 changed files with 3 additions and 13 deletions

View File

@ -41,6 +41,7 @@ public class RestPutStoredScriptAction extends BaseRestHandler {
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);
}

View File

@ -10,11 +10,6 @@
"type" : "string",
"description" : "Script ID",
"required" : true
},
"lang" : {
"type" : "string",
"description" : "Script language",
"required" : true
}
},
"params" : {

View File

@ -10,11 +10,6 @@
"type" : "string",
"description" : "Script ID",
"required" : true
},
"lang" : {
"type" : "string",
"description" : "Script language",
"required" : true
}
},
"params" : {

View File

@ -11,10 +11,9 @@
"description" : "Script ID",
"required" : true
},
"lang" : {
"context" : {
"type" : "string",
"description" : "Script language",
"required" : true
"description" : "Script context"
}
},
"params" : {