api_urls.py 579 Bytes
Newer Older
Janez K's avatar
Janez K committed
1
from django.conf.urls import patterns, include, url
Janez K's avatar
Janez K committed
2 3
from rest_framework import routers
from workflows import api_views
Janez K's avatar
Janez K committed
4

Janez K's avatar
Janez K committed
5
router = routers.DefaultRouter()
Janez K's avatar
Janez K committed
6
router.register(r'workflows', api_views.WorkflowViewSet)
7
router.register(r'widgets', api_views.WidgetViewSet)
8 9 10
router.register(r'connections', api_views.ConnectionViewSet)
router.register(r'inputs', api_views.InputViewSet)
router.register(r'outputs', api_views.OutputViewSet)
11

Janez K's avatar
Janez K committed
12

Janez K's avatar
Janez K committed
13 14 15
urlpatterns = patterns('',
    url(r'^', include(router.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
16
)