mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +03:00
Only show pip install for httpie
This commit is contained in:
parent
34b5db62e5
commit
515060a6ab
|
@ -332,16 +332,12 @@ Quit out of the shell...
|
|||
|
||||
In another terminal window, we can test the server.
|
||||
|
||||
We could use `curl`, but let's use a nicer tool called [httpie][httpie] to test our server. It has much nicer formatting and makes our output easier to read. This is especially useful when testing.
|
||||
We can test our API using using `curl` or [httpie][httpie]. Httpie is a user friendly http client that's written in Python. Let's install that.
|
||||
|
||||
You can install httpie on all operating systems using pip:
|
||||
|
||||
pip install httpie
|
||||
|
||||
It can also be installed through [Homebrew][brew] on Mac:
|
||||
|
||||
brew install httpie
|
||||
|
||||
Finally, we can get a list of all of the snippets:
|
||||
|
||||
http http://127.0.0.1:8000/snippets/ --body
|
||||
|
|
Loading…
Reference in New Issue
Block a user