
* Add SavedTableConfig * Update table configuration logic to support TableConfigs * Update table config link when updating table * Correct docstring * Misc cleanup * Use multi-select widgets for column selection * Return null config params for tables with no model * Fix auto-selection of selected columns * Update migration * Clean up template * Enforce enabled/shared flags * Search/filter by table name * Misc cleanup * Fix population of selected columns * Ordering field should not be required * Enable cloning for TableConfig * Misc cleanup * Add model documentation for TableConfig * Drop slug field from TableConfig * Improve TableConfig validation * Remove add button from TableConfig list view * Fix ordering validation to account for leading hyphens
36 lines
1.5 KiB
Python
36 lines
1.5 KiB
Python
from django.urls import include, path
|
|
|
|
from netbox.api.routers import NetBoxRouter
|
|
from . import views
|
|
|
|
|
|
router = NetBoxRouter()
|
|
router.APIRootView = views.ExtrasRootView
|
|
|
|
router.register('event-rules', views.EventRuleViewSet)
|
|
router.register('webhooks', views.WebhookViewSet)
|
|
router.register('custom-fields', views.CustomFieldViewSet)
|
|
router.register('custom-field-choice-sets', views.CustomFieldChoiceSetViewSet)
|
|
router.register('custom-links', views.CustomLinkViewSet)
|
|
router.register('export-templates', views.ExportTemplateViewSet)
|
|
router.register('saved-filters', views.SavedFilterViewSet)
|
|
router.register('table-configs', views.TableConfigViewSet)
|
|
router.register('bookmarks', views.BookmarkViewSet)
|
|
router.register('notifications', views.NotificationViewSet)
|
|
router.register('notification-groups', views.NotificationGroupViewSet)
|
|
router.register('subscriptions', views.SubscriptionViewSet)
|
|
router.register('tags', views.TagViewSet)
|
|
router.register('tagged-objects', views.TaggedItemViewSet)
|
|
router.register('image-attachments', views.ImageAttachmentViewSet)
|
|
router.register('journal-entries', views.JournalEntryViewSet)
|
|
router.register('config-contexts', views.ConfigContextViewSet)
|
|
router.register('config-templates', views.ConfigTemplateViewSet)
|
|
router.register('scripts', views.ScriptViewSet, basename='script')
|
|
router.register('object-types', views.ObjectTypeViewSet)
|
|
|
|
app_name = 'extras-api'
|
|
urlpatterns = [
|
|
path('dashboard/', views.DashboardView.as_view(), name='dashboard'),
|
|
path('', include(router.urls)),
|
|
]
|