mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
fixes typos and added a little help for httpie
This commit is contained in:
parent
79dad012b0
commit
2e9240ef55
|
@ -130,7 +130,7 @@ Okay, we're done.
|
|||
|
||||
We're now ready to test the API we've built. Let's fire up the server from the command line.
|
||||
|
||||
python ./manage.py runserver
|
||||
python manage.py runserver
|
||||
|
||||
We can now access our API, both from the command-line, using tools like `curl`...
|
||||
|
||||
|
@ -157,7 +157,8 @@ We can now access our API, both from the command-line, using tools like `curl`..
|
|||
|
||||
Or using the [httpie][httpie], command line tool...
|
||||
|
||||
bash: http -a username:password123 http://127.0.0.1:8000/users/
|
||||
bash: pip install httpie # if you have not installed it yet
|
||||
bash: http -a admin:password123 http://127.0.0.1:8000/users/
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
...
|
||||
|
@ -182,7 +183,7 @@ Or using the [httpie][httpie], command line tool...
|
|||
}
|
||||
|
||||
|
||||
Or directly through the browser...
|
||||
Or directly through the browser, by going to http://127.0.0.1:8000/users/
|
||||
|
||||
![Quick start image][image]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user