Commit af271b2 1 parent 7afedcb commit af271b2 Copy full SHA for af271b2
File tree 1 file changed +2
-2
lines changed
netbox_cmdb/netbox_cmdb/api/cmdb
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class DeleteAllCMDBObjectsRelatedToDevice(APIView):
27
27
status .HTTP_500_INTERNAL_SERVER_ERROR : "Internal Server Error: Something went wrong on the server" ,
28
28
},
29
29
)
30
- def post (self , request ):
30
+ def delete (self , request ):
31
31
device_name = request .data .get ("device_name" , None )
32
32
if device_name is None :
33
33
return Response (
@@ -73,7 +73,7 @@ class DecommissionSite(APIView):
73
73
status .HTTP_500_INTERNAL_SERVER_ERROR : "Internal Server Error: Something went wrong on the server" ,
74
74
},
75
75
)
76
- def post (self , request ):
76
+ def delete (self , request ):
77
77
site_name = request .data .get ("site_name" , None )
78
78
if site_name is None :
79
79
return Response ({"error" : "site name is required" }, status = status .HTTP_400_BAD_REQUEST )
You can’t perform that action at this time.
0 commit comments