diff options
author | Ryan Ernst <ryan@iernst.net> | 2017-06-01 17:53:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 17:53:48 -0700 |
commit | 8d88b943728d1a54fc0dab919dead9dde51774aa (patch) | |
tree | 0777b4a6362be45838094516a79e51e0a2d51f23 /rest-api-spec/src/main | |
parent | 39e59b49b16a8f82b174ba8066c4769b06a37eb0 (diff) |
Scripting: Add optional context parameter to put stored script requests (#25014)
This commit adds an optional `context` url parameter to the put stored
script request. When a context is specified, the script is compiled
against that context before storing, as a validation the script will
work when used in that context.
Diffstat (limited to 'rest-api-spec/src/main')
-rw-r--r-- | rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json b/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json index c29fdbbca0..dce52f787c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json @@ -18,6 +18,10 @@ } }, "params" : { + "context": { + "type" : "string", + "description" : "Context name to compile script against" + } } }, "body": { |