dynamicweb/opennebula_api/urls.py

14 lines
451 B
Python
Raw Permalink Normal View History

2017-05-11 10:45:09 +00:00
from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from .views import VmCreateView, VmDetailsView
2017-05-11 10:45:09 +00:00
urlpatterns = {
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^vms/$', VmCreateView.as_view(), name="vm_create"),
url(r'^vms/(?P<pk>[0-9]+)/$', VmDetailsView.as_view(),
name="vm_details"),
}
urlpatterns = format_suffix_patterns(urlpatterns)