{# Displays information about accessing a resource via the API. resource_id - The resource id embedded - If true will not include the "modal" classes on the snippet. Example {% snippet 'ajax_snippets/api_info.html', resource_id=resource_id, embedded=true %} #} {% set resource_id = h.sanitize_id(resource_id) %} {% set sql_example_url = h.url_for('api.action', ver=3, logic_function='datastore_search_sql', qualified=True) + '?sql=SELECT * from "' + resource_id + '" WHERE title LIKE \'jones\'' %} {# not urlencoding the sql because its clearer #}