reading-notes

Software Development Reading Notes

View on GitHub

Permissions

credit link: https://www.django-rest-framework.org/api-guide/permissions/

API reference

REST framework access restriction methods

                                    queryset	permission_classes	serializer_class

Action: list	                    global	    global	            object-level*
Action: create                      no	            global	        object-level
Action: retrieve                    global	    object-level	    object-level
Action: update	                    global	    object-level	    object-level
Action: partial_update	            global	    object-level	    object-level
Action: destroy	                    global	    object-level	    no
Can reference action in decision    no**	    yes	                no**
Can reference request in decision   no**	    yes	                yes