from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    AssetViewSet, AssetCategoryViewSet, AssetLocationViewSet,
    AssetAssignmentViewSet, AssetTicketViewSet, AssetDocumentViewSet,
    MaintenanceViewSet, ProcurementViewSet, VendorViewSet,
    LicenseViewSet, RentalViewSet, StockItemViewSet, StockLevelViewSet, StockMovementViewSet,
)

router = DefaultRouter()
router.register(r"assets", AssetViewSet, basename="asset")
router.register(r"asset-categories", AssetCategoryViewSet, basename="asset-category")
router.register(r"asset-locations", AssetLocationViewSet, basename="asset-location")
router.register(r"asset-assignments", AssetAssignmentViewSet, basename="asset-assignment")
router.register(r"asset-tickets", AssetTicketViewSet, basename="asset-ticket")
router.register(r"asset-documents", AssetDocumentViewSet, basename="asset-document")
router.register(r"maintenance", MaintenanceViewSet, basename="maintenance")
router.register(r"procurements", ProcurementViewSet, basename="procurement")
router.register(r"vendors", VendorViewSet, basename="vendor")
router.register(r"licenses", LicenseViewSet, basename="license")
router.register(r"rentals", RentalViewSet, basename="rental")
router.register(r"stock-items", StockItemViewSet, basename="stock-item")
router.register(r"stock-levels", StockLevelViewSet, basename="stock-level")
router.register(r"stock-movements", StockMovementViewSet, basename="stock-movement")

urlpatterns = [
    path("", include(router.urls)),
]