Update Postman account collection and modify SensorHubView to remove authentication and permission requirements

This commit is contained in:
2026-02-19 14:43:49 +03:30
parent a39d83c241
commit 18a5d34750
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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",
+2 -1
View File
@@ -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):