You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,16 @@ urlpatterns = patterns(
45
45
46
46
You can easily test if the endpoint is working by doing the following in your terminal, if you had a user created with the username **admin** and password **abc123**.
47
47
48
-
```
48
+
```bash
49
49
$ curl -X POST -d "username=admin&password=abc123" http://localhost:8000/api-token-auth/
50
50
```
51
51
52
+
Now in order to access protected api urls you must include the `Authorization: JWT <your_token>` header.
There are some additional settings that you can override similar to how you'd do it with Django REST framework itself. Here are all the available defaults.
0 commit comments