Skip to content

Commit

Permalink
Disable browsable API
Browse files Browse the repository at this point in the history
To avoid confusion with the proper platform RBAC UI, we should disable the browsable
API rendering and just return JSON.
  • Loading branch information
coderbydesign committed Oct 26, 2021
1 parent e8ef184 commit 39bf8f3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rbac/rbac/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@
# or allow read-only access for unauthenticated users.
"DEFAULT_PERMISSION_CLASSES": ["rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly"],
"DEFAULT_PAGINATION_CLASS": DEFAULT_PAGINATION_CLASS,
"DEFAULT_RENDERER_CLASSES": (
"rest_framework.renderers.JSONRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
),
"DEFAULT_RENDERER_CLASSES": ("rest_framework.renderers.JSONRenderer",),
"EXCEPTION_HANDLER": DEFAULT_EXCEPTION_HANDLER,
"ORDERING_PARAM": "order_by",
}
Expand Down

0 comments on commit 39bf8f3

Please sign in to comment.