Skip to content

Commit

Permalink
fix(swagger): missing detail in decomm views
Browse files Browse the repository at this point in the history
  • Loading branch information
kpetremann committed Sep 19, 2024
1 parent e75133e commit b85bee1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netbox_cmdb/netbox_cmdb/api/cmdb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class DeviceDecommissioningBaseSerializer(serializers.Serializer):

class DeviceCMDBDecommissioningAPIView(APIView):

detail = "Device CMDB decommissioning"
permission_classes = [IsAuthenticatedOrLoginNotRequired]

@swagger_auto_schema(
Expand Down Expand Up @@ -58,6 +59,7 @@ def delete(self, request):

class DeviceDecommissioningAPIView(APIView):

detail = "Device full decommissioning"
permission_classes = [IsAuthenticatedOrLoginNotRequired]

@swagger_auto_schema(
Expand Down Expand Up @@ -106,6 +108,7 @@ class SiteDecommissioningSerializer(serializers.Serializer):

class SiteDecommissioningAPIView(APIView):

detail = "Site full decommissioning"
permission_classes = [IsAuthenticatedOrLoginNotRequired]

@swagger_auto_schema(
Expand Down

0 comments on commit b85bee1

Please sign in to comment.