2026-09-30 19:21:16 +01:00
|
|
|
from django.urls import include, path
|
|
|
|
|
|
2017-05-11 12:45:09 +02:00
|
|
|
from rest_framework.urlpatterns import format_suffix_patterns
|
2026-09-30 19:21:16 +01:00
|
|
|
|
2017-06-01 17:30:53 +02:00
|
|
|
from .views import VmCreateView, VmDetailsView
|
2017-05-11 12:45:09 +02:00
|
|
|
|
|
|
|
|
|
2026-09-30 19:21:16 +01:00
|
|
|
app_name = "opennebula_api"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path(
|
|
|
|
|
"auth/",
|
|
|
|
|
include("rest_framework.urls", namespace="rest_framework"),
|
|
|
|
|
),
|
|
|
|
|
path(
|
|
|
|
|
"vms/",
|
|
|
|
|
VmCreateView.as_view(),
|
|
|
|
|
name="vm_create",
|
|
|
|
|
),
|
|
|
|
|
path(
|
|
|
|
|
"vms/<int:pk>/",
|
|
|
|
|
VmDetailsView.as_view(),
|
|
|
|
|
name="vm_details",
|
|
|
|
|
),
|
|
|
|
|
]
|
2017-05-11 12:45:09 +02:00
|
|
|
|
2026-09-30 19:21:16 +01:00
|
|
|
urlpatterns = format_suffix_patterns(urlpatterns)
|