diff --git a/account/postman/account.json b/account/postman/account.json index 14ed857..efc03e9 100644 --- a/account/postman/account.json +++ b/account/postman/account.json @@ -4,6 +4,7 @@ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": "Account API. GET list, GET by uuid (detail), POST add, PATCH update, DELETE delete, PATCH profile. Authenticated user required." }, + "item": [ { "name": "Update profile", diff --git a/sensor_hub/views.py b/sensor_hub/views.py index d251784..12ab728 100644 --- a/sensor_hub/views.py +++ b/sensor_hub/views.py @@ -69,7 +69,8 @@ class SensorHubView(APIView): - POST "active/" → Activate: no input. Returns code 200, msg "success". No data field. - POST "deactive/" → Deactivate: no input. Returns code 200, msg "success". No data field. """ - + authentication_classes = [] # No authentication + permission_classes = [] # No permission # permission_classes = [IsAuthenticated] def get(self, request, *args, **kwargs):