Commit 41272744 by Marko Tibold

Add an extra explenation on how to use curl on this view.

parent e419e206
......@@ -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?'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment