mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* WIP * WIP * Add git sync * Fix file hashing * Add last_synced to DataSource * Build out UI & API resources * Add status field to DataSource * Add UI control to sync data source * Add API endpoint to sync data sources * Fix display of DataSource job results * DataSource password should be write-only * General cleanup * Add data file UI view * Punt on HTTP, FTP support for now * Add DataSource URL validation * Add HTTP proxy support to git fetcher * Add management command to sync data sources * DataFile REST API endpoints should be read-only * Refactor fetch methods into backend classes * Replace auth & git branch fields with general-purpose parameters * Fix last_synced time * Render discrete form fields for backend parameters * Enable dynamic edit form for DataSource * Register DataBackend classes in application registry * Add search indexers for DataSource, DataFile * Add single & bulk delete views for DataFile * Add model documentation * Convert DataSource to a primary model * Introduce pre_sync & post_sync signals * Clean up migrations * Rename url to source_url * Clean up filtersets * Add API & filterset tests * Add view tests * Add initSelect() to HTMX refresh handler * Render DataSourceForm fieldsets dynamically * Update compiled static resources
23 lines
1008 B
Python
23 lines
1008 B
Python
from django.urls import include, path
|
|
|
|
from utilities.urls import get_model_urls
|
|
from . import views
|
|
|
|
app_name = 'core'
|
|
urlpatterns = (
|
|
|
|
# Data sources
|
|
path('data-sources/', views.DataSourceListView.as_view(), name='datasource_list'),
|
|
path('data-sources/add/', views.DataSourceEditView.as_view(), name='datasource_add'),
|
|
path('data-sources/import/', views.DataSourceBulkImportView.as_view(), name='datasource_import'),
|
|
path('data-sources/edit/', views.DataSourceBulkEditView.as_view(), name='datasource_bulk_edit'),
|
|
path('data-sources/delete/', views.DataSourceBulkDeleteView.as_view(), name='datasource_bulk_delete'),
|
|
path('data-sources/<int:pk>/', include(get_model_urls('core', 'datasource'))),
|
|
|
|
# Data files
|
|
path('data-files/', views.DataFileListView.as_view(), name='datafile_list'),
|
|
path('data-files/delete/', views.DataFileBulkDeleteView.as_view(), name='datafile_bulk_delete'),
|
|
path('data-files/<int:pk>/', include(get_model_urls('core', 'datafile'))),
|
|
|
|
)
|