From 18a5d347508ff8b862897603b047abc9d0939449 Mon Sep 17 00:00:00 2001 From: Mohammad Sajad Pourajam Date: Thu, 19 Feb 2026 14:43:49 +0330 Subject: [PATCH] Update Postman account collection and modify SensorHubView to remove authentication and permission requirements --- account/postman/account.json | 1 + sensor_hub/views.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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):