diff --git a/src/templates/open-data.html b/src/templates/open-data.html index f6d45b2..3dfd928 100644 --- a/src/templates/open-data.html +++ b/src/templates/open-data.html @@ -17,31 +17,34 @@
{% trans "Each model listed below has a resource_uri field available, which is the object's data URI." %}
-{% trans "The following list contains the available models to retrieve data" %}:
+{% trans "The following list contains the available models to retrieve data and its fields available for filtering" %}:
{% trans "The email field is not shown for user's privacy, but you can filter through it" %}
{% trans "The user field is a foreign key for user objects and it can be null" %}
{% trans "The from_address field is a foreign key to emailaddress objects" %}
...{{ BASE_API_URL }}wiki/?name={% trans "WikiName" %}
- {% trans "Where "name" is the fieldname and "WikiName" is the value you want to filter. You can also filter using Django lookup fields as below" %} +{% trans "Where "name" is the fieldname and "WikiName" is the value you want to filter." %}
+{% trans "You can also filter using Django lookup fields as below" %}
...{{ BASE_API_URL }}wiki/?wiki_text__startswith={% trans "Wiki" %}
...{{ BASE_API_URL }}ticket/?author__endswith={% trans "test" %}
...{{ BASE_API_URL }}message/?body__contains={% trans "test" %}
+...{{ BASE_API_URL }}message/?from_address__user__email=usermailexample@host.com
+...{{ BASE_API_URL }}message/?from_address__real_name=Name
+{% trans "Note: email filters must be exact." %}