Add linking app setup API views and tests.
This commit is contained in:
@@ -2,6 +2,10 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
|
||||
from .api_views import (
|
||||
APISmartLinkListView, APISmartLinkView, APISmartLinkConditionListView,
|
||||
APISmartLinkConditionView
|
||||
)
|
||||
from .views import (
|
||||
DocumentSmartLinkListView, ResolvedSmartLinkView,
|
||||
SetupSmartLinkDocumentTypesView, SmartLinkConditionListView,
|
||||
@@ -61,3 +65,22 @@ urlpatterns = patterns(
|
||||
name='smart_link_condition_delete'
|
||||
),
|
||||
)
|
||||
|
||||
api_urls = [
|
||||
url(
|
||||
r'^smart_links/$', APISmartLinkListView.as_view(), name='smartlink-list'
|
||||
),
|
||||
url(
|
||||
r'^smart_links/(?P<pk>[0-9]+)/$', APISmartLinkView.as_view(),
|
||||
name='smartlink-detail'
|
||||
),
|
||||
url(
|
||||
r'^smart_links/(?P<pk>[0-9]+)/conditions/$',
|
||||
APISmartLinkConditionListView.as_view(), name='smartlinkcondition-list'
|
||||
),
|
||||
url(
|
||||
r'^smart_links/(?P<pk>[0-9]+)/conditions/(?P<condition_pk>[0-9]+)/$',
|
||||
APISmartLinkConditionView.as_view(),
|
||||
name='smartlinkcondition-detail'
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user