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

Fixed browsable API breadcrumbs

This commit is contained in:
Jeremy Stretch
2017-03-20 21:50:10 -04:00
parent 925afe0999
commit 6cb36a6cee
6 changed files with 54 additions and 0 deletions

View File

@ -3,7 +3,16 @@ from rest_framework import routers
from . import views
class CircuitsRootView(routers.APIRootView):
"""
Circuits API root view
"""
def get_view_name(self):
return 'Circuits'
router = routers.DefaultRouter()
router.APIRootView = CircuitsRootView
# Providers
router.register(r'providers', views.ProviderViewSet)