django-rest-framework-tutorial
django-rest-framework-tutorial copied to clipboard
设置权限时,如果允许任意用户get,只允许授权用户post的话,可以引入IsAuthenticatedOrReadOnly类
感謝,看了一下官方的文件 http://www.django-rest-framework.org/api-guide/permissions/#isauthenticatedorreadonly,的確是這樣,感謝提醒。