Fix inconsistencies in the rest api specs for *_script (#26971)
This commit is contained in:
parent
2310c8e2e2
commit
bb013c60b5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,11 +10,6 @@
|
|||
"type" : "string",
|
||||
"description" : "Script ID",
|
||||
"required" : true
|
||||
},
|
||||
"lang" : {
|
||||
"type" : "string",
|
||||
"description" : "Script language",
|
||||
"required" : true
|
||||
}
|
||||
},
|
||||
"params" : {
|
||||
|
|
|
@ -10,11 +10,6 @@
|
|||
"type" : "string",
|
||||
"description" : "Script ID",
|
||||
"required" : true
|
||||
},
|
||||
"lang" : {
|
||||
"type" : "string",
|
||||
"description" : "Script language",
|
||||
"required" : true
|
||||
}
|
||||
},
|
||||
"params" : {
|
||||
|
|
|
@ -11,10 +11,9 @@
|
|||
"description" : "Script ID",
|
||||
"required" : true
|
||||
},
|
||||
"lang" : {
|
||||
"context" : {
|
||||
"type" : "string",
|
||||
"description" : "Script language",
|
||||
"required" : true
|
||||
"description" : "Script context"
|
||||
}
|
||||
},
|
||||
"params" : {
|
||||
|
|
Loading…
Reference in New Issue