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(POST, "/_scripts/{id}", this);
controller.registerHandler(PUT, "/_scripts/{id}", this); controller.registerHandler(PUT, "/_scripts/{id}", this);
controller.registerHandler(POST, "/_scripts/{id}/{context}", this);
controller.registerHandler(PUT, "/_scripts/{id}/{context}", this); controller.registerHandler(PUT, "/_scripts/{id}/{context}", this);
} }

View File

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

View File

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

View File

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