mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
Fix curl response.
Didn't map to the correct stage of the tutorial.
This commit is contained in:
parent
ea7d73f57e
commit
4599cd97cb
|
@ -195,7 +195,7 @@ We can make a successful request by including the username and password of one o
|
|||
|
||||
curl -X POST http://127.0.0.1:8000/snippets/ -d "code=print 789" -u tom:password
|
||||
|
||||
{"url": "http://127.0.0.1:8000/snippets/5/", "highlight": "http://127.0.0.1:8000/snippets/5/highlight/", "owner": "tom", "title": "foo", "code": "print 789", "linenos": false, "language": "python", "style": "friendly"}
|
||||
{"id": 5, "owner": "tom", "title": "foo", "code": "print 789", "linenos": false, "language": "python", "style": "friendly"}
|
||||
|
||||
## Summary
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user