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(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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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" : {
|
||||||
|
|
|
@ -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" : {
|
||||||
|
|
|
@ -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" : {
|
||||||
|
|
Loading…
Reference in New Issue