{% call register_example('curl', 'button_label') %} curl {% endcall %} {% call register_example('curl', 'request_limit') %}
curl {{ h.url_for('api.action', logic_function='datastore_search', qualified=True) }} \
  -H"Authorization:$API_TOKEN" -d '
{
  "resource_id": "{{ resource_id }}",
  "limit": 5,
  "q": "jones"
}'
{% endcall %} {% call register_example('curl', 'request_filter') %}
curl {{ h.url_for('api.action', logic_function='datastore_search', qualified=True) }} \
-H"Authorization:$API_TOKEN" -d '
{
"resource_id": "{{ resource_id }}",
  "filters": {
    "subject": ["watershed", "survey"],
    "stage": "active"
  }
}'
{% endcall %} {% call register_example('curl', 'request_sql') %}
curl {{ h.url_for('api.action', logic_function='datastore_search_sql', qualified=True) }} \
  -H"Authorization:$API_TOKEN" -d @- <<END
{
  "sql": "SELECT * FROM \"{{ resource_id }}\" WHERE title LIKE 'jones'"
}
END
{% endcall %} {% block custom %}{% endblock %}