Add REST API support to members

Members can be now retrieved one at a time is user has admin rights.
Implemented also permissions and throttle rates to REST API and added
required settings.py modifications to settings-sample.py file.
This commit is contained in:
henu
2017-05-25 17:06:44 +03:00
parent 90177ab9fc
commit 54612e31ca
4 changed files with 28 additions and 1 deletions
+1
View File
@@ -137,6 +137,7 @@ REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
'rest_framework.permissions.DjangoModelPermissions',
'rest_framework.permissions.IsAdminUser',
),
'DEFAULT_THROTTLE_CLASSES': (
'members.throttles.BurstRateThrottle',