# -*- coding: utf-8 -*-

# Akvo RSR is covered by the GNU Affero General Public License.
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.


from django.conf.urls import patterns, url, include
from rest_framework import routers
import views

router = routers.DefaultRouter()

router.register(r'benchmark', views.BenchmarkViewSet)
router.register(r'benchmark_name', views.BenchmarknameViewSet)
router.register(r'budget_item', views.BudgetItemViewSet)
router.register(r'budget_item_label', views.BudgetItemLabelViewSet)
router.register(r'category', views.CategoryViewSet)
router.register(r'country', views.CountryViewSet)
router.register(r'focus_area', views.FocusAreaViewSet)
router.register(r'goal', views.GoalViewSet)
router.register(r'internal_organisation_id', views.InternalOrganisationIDViewSet)
router.register(r'invoice', views.InvoiceViewSet)
router.register(r'link', views.LinkViewSet)
router.register(r'organisation', views.OrganisationViewSet)
router.register(r'organisation_location', views.OrganisationLocationViewSet)
router.register(r'partner_site', views.PartnerSiteViewSet)
router.register(r'partner_type', views.PartnerTypeViewSet)
router.register(r'partnership', views.PartnershipViewSet)
router.register(r'project', views.ProjectViewSet)
router.register(r'project_comment', views.ProjectCommentViewSet)
router.register(r'project_location', views.ProjectLocationViewSet)
router.register(r'project_update', views.ProjectUpdateViewSet)
router.register(r'publishing_status', views.PublishingStatusViewSet)
router.register(r'user', views.UserViewSet)
router.register(r'user_profile', views.UserProfileViewSet)

# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browseable API.
urlpatterns = patterns('',
    url(r'^', include(router.urls)),
    #url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
)




# -*- coding: utf-8 -*-

# Akvo RSR is covered by the GNU Affero General Public License.
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.


from django.conf.urls import patterns, url, include
from rest_framework import routers
import views

router = routers.DefaultRouter()

router.register(r'benchmark', views.BenchmarkViewSet)
router.register(r'benchmark_name', views.BenchmarknameViewSet)
router.register(r'budget_item', views.BudgetItemViewSet)
router.register(r'budget_item_label', views.BudgetItemLabelViewSet)
router.register(r'category', views.CategoryViewSet)
router.register(r'country', views.CountryViewSet)
router.register(r'focus_area', views.FocusAreaViewSet)
router.register(r'goal', views.GoalViewSet)
router.register(r'internal_organisation_id', views.InternalOrganisationIDViewSet)
router.register(r'invoice', views.InvoiceViewSet)
router.register(r'link', views.LinkViewSet)
router.register(r'organisation', views.OrganisationViewSet)
router.register(r'organisation_location', views.OrganisationLocationViewSet)
router.register(r'partner_site', views.PartnerSiteViewSet)
router.register(r'partner_type', views.PartnerTypeViewSet)
router.register(r'partnership', views.PartnershipViewSet)
router.register(r'project', views.ProjectViewSet)
router.register(r'project_comment', views.ProjectCommentViewSet)
router.register(r'project_location', views.ProjectLocationViewSet)
router.register(r'project_update', views.ProjectUpdateViewSet)
router.register(r'project_update_extra', views.ProjectUpdateExtraViewSet)
router.register(r'project_update_location', views.ProjectUpdateLocationViewSet)
router.register(r'publishing_status', views.PublishingStatusViewSet)
router.register(r'user', views.UserViewSet)
router.register(r'user_profile', views.UserProfileViewSet)

# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browseable API.
urlpatterns = patterns('',
    url(r'^', include(router.urls)),
    #url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
)




Add new endpoints to urls.py