1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

20 lines
556 B
Python
Raw Normal View History

2022-07-13 16:18:55 -04:00
from netbox.api.routers import NetBoxRouter
from . import views
2016-07-26 14:58:37 -04:00
router = NetBoxRouter()
router.APIRootView = views.TenancyRootView
2017-03-09 13:24:02 -05:00
# Tenants
router.register('tenant-groups', views.TenantGroupViewSet)
router.register('tenants', views.TenantViewSet)
2017-02-03 16:20:14 -05:00
2021-10-18 11:45:05 -04:00
# Contacts
router.register('contact-groups', views.ContactGroupViewSet)
router.register('contact-roles', views.ContactRoleViewSet)
router.register('contacts', views.ContactViewSet)
router.register('contact-assignments', views.ContactAssignmentViewSet)
app_name = 'tenancy-api'
2017-03-09 13:24:02 -05:00
urlpatterns = router.urls