We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As rules/add does. In other words, the following should work:
rules/add
cat <<EOF | curl -s -d "@-" "$ENDPOINT/api/sys/loccontrol" {"Libraries":{"jokes":"function funny() { return 42; }"}} EOF cat <<EOF | curl -s -d "@-" "$ENDPOINT/api/loc/rules/add?location=$LOCATION" {"rule": {"when":{"pattern":{"wants":"?x"}}, "action":{"opts": {"libraries":["jokes"]}, "code": "funny()+1"}}} EOF curl -s -d 'event={"wants":"tacos"}' "$ENDPOINT/api/loc/events/ingest?location=$LOCATION" | \ jq '.result.values[0]'
Currently does not. If you do
curl -s --data-urlencode 'control={"Libraries":{"jokes":"function funny() { return 42; }"}}' "$ENDPOINT/api/sys/loccontrol"
instead of the first curl above, things do work.
curl
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As
rules/add
does. In other words, the following should work:Currently does not. If you do
instead of the first
curl
above, things do work.The text was updated successfully, but these errors were encountered: