Follow the attribution requirements of the Apache License 2.0 for this fork of ICTU/netbox_slm: - add a NOTICE file with the original copyright (ICTU) and the fork's notice - mark every file changed since upstream 1.9.0 as modified (section 4b); the original copyright header in __init__.py is kept - add a visible fork notice and a section on origin, credits, changes and license to the README - point project URLs to this fork (with an Upstream link), list ICTU as author and MrBlake as maintainer, and stop showing ICTU's email address as the plugin contact - ship NOTICE in the package and drop the MANIFEST entry for the removed SECURITY.md Bump version to 1.14.1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
23 lines
853 B
Python
23 lines
853 B
Python
# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM
|
|
# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files.
|
|
from netbox.api.routers import NetBoxRouter
|
|
from netbox_slm.api.views import (
|
|
NetboxSLMRootView,
|
|
SoftwareProductViewSet,
|
|
SoftwareProductVersionViewSet,
|
|
SoftwareProductInstallationViewSet,
|
|
SoftwareLicenseViewSet,
|
|
CertificateViewSet,
|
|
)
|
|
|
|
router = NetBoxRouter()
|
|
router.APIRootView = NetboxSLMRootView
|
|
|
|
router.register("softwareproducts", SoftwareProductViewSet)
|
|
router.register("softwareproductversions", SoftwareProductVersionViewSet)
|
|
router.register("softwareproductinstallations", SoftwareProductInstallationViewSet)
|
|
router.register("softwarelicenses", SoftwareLicenseViewSet)
|
|
router.register("certificates", CertificateViewSet)
|
|
|
|
urlpatterns = router.urls
|