Untitled
unknown
plain_text
4 years ago
757 B
7
Indexable
# Gruul define the data shape, can be arbitraryly shaped json object ```json { "data": { "name": "Jay", "location": { "city": "foobar" } }, "rule": "data.name === 'Jay' && data.location.city === 'foobar'" } ``` request enpoint for sending POST request `https://gruul.azurewebsites.net/api/data/demo` ## Sample request with curl ```bash curl --request POST \ --url https://gruul.azurewebsites.net/api/data/demo \ --header 'Content-Type: application/json' \ --data '{ "data": { "name": "Jay", "location": { "city": "foobar" } }, "rule": "data.name === '\''Jay'\'' && data.location.city === '\''foobar'\''" }' ``` ## Response - `true` rule expression passed - `false` rule expression failed
Editor is loading...