From e15340f41fd206606d0253470da23a87ec6bb7b4 Mon Sep 17 00:00:00 2001 From: Shubham Mahajan Date: Fri, 28 May 2021 14:24:52 +0530 Subject: [PATCH] Add the Resource Id in the query example The recent change for the Logging require resource_id in the params --- ckanext/nhs/templates/ajax_snippets/api_info.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/nhs/templates/ajax_snippets/api_info.html b/ckanext/nhs/templates/ajax_snippets/api_info.html index 30b2449..bc90c14 100644 --- a/ckanext/nhs/templates/ajax_snippets/api_info.html +++ b/ckanext/nhs/templates/ajax_snippets/api_info.html @@ -10,7 +10,7 @@ #} -{% set sql_example_url = h.url_for(controller='api', action='action', ver=3, logic_function='datastore_search_sql', qualified=True) + '?sql=SELECT * from ' +'`'+ resource_id +'`'+ ' limit 5' %} +{% set sql_example_url = h.url_for(controller='api', action='action', ver=3, logic_function='datastore_search_sql', qualified=True) + '?resource_id='+resource_id + '&sql=SELECT * from ' +'`'+ resource_id +'`'+ ' limit 5' %} {# not urlencoding the sql because its clearer #}