mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Add an extra explenation on how to use curl on this view.
This commit is contained in:
parent
e419e2066f
commit
412727440b
|
@ -31,8 +31,11 @@ class ThrottlingExampleView(View):
|
|||
|
||||
class LoggedInExampleView(View):
|
||||
"""
|
||||
You can login with **'test', 'test'.**
|
||||
"""
|
||||
You can login with **'test', 'test'.** or use curl:
|
||||
|
||||
`curl -X GET -H 'Accept: application/json' -u test:test http://localhost:8000/permissions-example`
|
||||
"""
|
||||
|
||||
permissions = (IsAuthenticated, )
|
||||
def get(self, request):
|
||||
return 'Logged in or not?'
|
||||
|
|
Loading…
Reference in New Issue
Block a user