Initial commit

This commit is contained in:
2025-01-20 14:33:03 +05:00
commit 4d0eb86478
84 changed files with 4436 additions and 0 deletions

26
devices/urls.py Normal file
View File

@ -0,0 +1,26 @@
from django.urls import path
from . import views
urlpatterns = [
path(
"",
views.DeviceListCreateAPIView.as_view(),
name="device-list",
),
path(
"<int:pk>/",
views.DeviceDetailAPIView.as_view(),
name="device-detail",
),
path(
"<int:pk>/update/",
views.DeviceUpdateAPIView.as_view(),
name="device-edit",
),
path(
"<int:pk>/delete/",
views.DeviceDestroyAPIView.as_view(),
name="device-delete",
),
]