From b85bee13d2bc79248ef4ef7e4649c888d19006aa Mon Sep 17 00:00:00 2001 From: Kevin Petremann Date: Thu, 19 Sep 2024 14:02:31 +0200 Subject: [PATCH] fix(swagger): missing detail in decomm views --- netbox_cmdb/netbox_cmdb/api/cmdb/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netbox_cmdb/netbox_cmdb/api/cmdb/views.py b/netbox_cmdb/netbox_cmdb/api/cmdb/views.py index 1315d80..dab17d0 100644 --- a/netbox_cmdb/netbox_cmdb/api/cmdb/views.py +++ b/netbox_cmdb/netbox_cmdb/api/cmdb/views.py @@ -16,6 +16,7 @@ class DeviceDecommissioningBaseSerializer(serializers.Serializer): class DeviceCMDBDecommissioningAPIView(APIView): + detail = "Device CMDB decommissioning" permission_classes = [IsAuthenticatedOrLoginNotRequired] @swagger_auto_schema( @@ -58,6 +59,7 @@ def delete(self, request): class DeviceDecommissioningAPIView(APIView): + detail = "Device full decommissioning" permission_classes = [IsAuthenticatedOrLoginNotRequired] @swagger_auto_schema( @@ -106,6 +108,7 @@ class SiteDecommissioningSerializer(serializers.Serializer): class SiteDecommissioningAPIView(APIView): + detail = "Site full decommissioning" permission_classes = [IsAuthenticatedOrLoginNotRequired] @swagger_auto_schema(