Example request
The following retrieves the my-first-script
stored script.
Example response
The GET _scripts/my-first-script
request returns the following fields:
"_id" : "my-first-script",
"found" : true,
"lang" : "painless",
"source" : """
int total = 0;
total += doc['ratings'][i];
return total;
"""
}
}