Update Postman account collection and modify SensorHubView to remove authentication and permission requirements
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
"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."
|
"description": "Account API. GET list, GET by uuid (detail), POST add, PATCH update, DELETE delete, PATCH profile. Authenticated user required."
|
||||||
},
|
},
|
||||||
|
|
||||||
"item": [
|
"item": [
|
||||||
{
|
{
|
||||||
"name": "Update profile",
|
"name": "Update profile",
|
||||||
|
|||||||
+2
-1
@@ -69,7 +69,8 @@ class SensorHubView(APIView):
|
|||||||
- POST "active/" → Activate: no input. Returns code 200, msg "success". No data field.
|
- 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.
|
- POST "deactive/" → Deactivate: no input. Returns code 200, msg "success". No data field.
|
||||||
"""
|
"""
|
||||||
|
authentication_classes = [] # No authentication
|
||||||
|
permission_classes = [] # No permission
|
||||||
# permission_classes = [IsAuthenticated]
|
# permission_classes = [IsAuthenticated]
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user