This example demostrate the usage of WebTask Storage with multiple models and how to save / filter / find them.
$ curl https://__host__.run.webtask.io/example\?action\=delete_all
{}
$ curl https://__host__.run.webtask.io/example\?action\=save_model \
-H "Content-Type: application/json" \
--data '{"modelName": "planets", "properties": {"name": "Earth"}}'
{}
$ curl https://__host__.run.webtask.io/example\?action\=save_model \
-H "Content-Type: application/json" \
--data '{"modelName": "planets", "properties": {"name": "Mars"}}'
{}
$ curl https://__host__.run.webtask.io/example\?action\=filter_model \
-H "Content-Type: application/json"\
--data '{"modelName": "planets", "properties": {"name": "Mars"}}'
[{"name":"Mars"}]
$ curl https://__host__.run.webtask.io/example\?action\=find_model \
-H "Content-Type: application/json" \
--data '{"modelName": "planets", "properties": {"name": "Mars"}}'
{"name":"Mars"}