mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
Use the suggested admin username from quickstart
This commit is contained in:
parent
6d00c99cd8
commit
c86c3da068
|
@ -205,11 +205,11 @@ If we try to create a snippet without authenticating, we'll get an error:
|
||||||
|
|
||||||
We can make a successful request by including the username and password of one of the users we created earlier.
|
We can make a successful request by including the username and password of one of the users we created earlier.
|
||||||
|
|
||||||
http -a tom:password123 POST http://127.0.0.1:8000/snippets/ code="print 789"
|
http -a admin:password123 POST http://127.0.0.1:8000/snippets/ code="print 789"
|
||||||
|
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"owner": "tom",
|
"owner": "admin",
|
||||||
"title": "foo",
|
"title": "foo",
|
||||||
"code": "print 789",
|
"code": "print 789",
|
||||||
"linenos": false,
|
"linenos": false,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user