From dab880dd83897754b1fc6b7589cb495e6990ee90 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 19 Dec 2013 15:46:27 -0200 Subject: [PATCH] Fixing api name and links --- src/api/urls.py | 2 +- src/templates/open-data.html | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/api/urls.py b/src/api/urls.py index b5d7f69..8280233 100644 --- a/src/api/urls.py +++ b/src/api/urls.py @@ -9,7 +9,7 @@ from .models import (UserResource, EmailAddressResource, MessageResource, from .views import VoteView -api = Api(api_name='colab') +api = Api(api_name='v1') api.register(UserResource()) api.register(EmailAddressResource()) api.register(MessageResource()) diff --git a/src/templates/open-data.html b/src/templates/open-data.html index f116f49..f6d45b2 100644 --- a/src/templates/open-data.html +++ b/src/templates/open-data.html @@ -4,14 +4,14 @@ {% block main-content %}

{% trans "OpenData - Communities Interlegis" %}

-

{% 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 "If you are interested in any other data that is not provided by this API, please contact us via the ticketing system (you must be registered in order to create a ticket)." %}

{% trans "Retrieving data via API" %}

-

{% trans "Colab API works through an HTTP/REST always returning JSON objects." %}

+

{% trans "Colab API works through HTTP/REST and 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 }} + {% url 'api_v1_top_level' api_name='v1' as BASE_API_URL %} + {{ BASE_API_URL }}

-- libgit2 0.21.2