diff --git a/src/colab/urls.py b/src/colab/urls.py index 69829d1..dd894d3 100644 --- a/src/colab/urls.py +++ b/src/colab/urls.py @@ -12,6 +12,8 @@ admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'home.views.index', name='home'), + url(r'open-data/$', TemplateView.as_view(template_name='open-data.html'), + name='opendata'), url(r'^search/', include('search.urls')), url(r'^archives/', include('super_archives.urls')), diff --git a/src/templates/base.html b/src/templates/base.html index e3d7046..063c549 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -164,16 +164,17 @@
{% trans "Last email imported at" %} {{ last_imported_message.received_time|date:'DATETIME_FORMAT' }}
- {% trans "The contents of this site is published under license" %} - - {% trans "Creative Commons - attribution, non-commercial" %} - -
+ +{% trans "Last email imported at" %} {{ last_imported_message.received_time|date:'DATETIME_FORMAT' }}
++ {% trans "The contents of this site is published under license" %} + + {% trans "Creative Commons - attribution, non-commercial" %} + +
{% trans "If you are interested in integrating your system with the Colab environment and requires no other data provided by this API, please contact us via the ticketing system (you must be registered in order to create a ticket)." %}
+ +{% trans "Colab API works through an HTTP/REST always returning JSON objects." %}
++ {% trans "The base API URL is" %}: + {% with "/api/colab/" as BASE_API_URL %} + http://colab.interlegis.leg.br{{ BASE_API_URL }} +
+ +{% 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" %}:
+