Skip to content

Commit fcbae5d

Browse files
committed
updates based on suggestions
1 parent a17d5d2 commit fcbae5d

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

docs/tutorial/1-serialization.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ Quit out of the shell...
332332

333333
In another terminal window, we can test the server.
334334

335-
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.
335+
We can test our API using using [curl][curl] or [httpie][httpie]. Httpie is a user friendly http client that's written in Python. Let's install that.
336336

337-
You can install httpie on all operating systems using pip:
337+
You can install httpie using pip:
338338

339339
pip install httpie
340340

@@ -363,8 +363,10 @@ Finally, we can get a list of all of the snippets:
363363

364364
Or we can get a particular snippet by referencing its id:
365365

366-
http http://127.0.0.1:8000/snippets/2/ --body
366+
http http://127.0.0.1:8000/snippets/2/
367367

368+
HTTP/1.1 200 OK
369+
...
368370
{
369371
"id": 2,
370372
"title": "",
@@ -390,3 +392,4 @@ We'll see how we can start to improve things in [part 2 of the tutorial][tut-2].
390392
[virtualenv]: http://www.virtualenv.org/en/latest/index.html
391393
[tut-2]: 2-requests-and-responses.md
392394
[httpie]: https://github.com/jakubroztocil/httpie#installation
395+
[curl]: http://curl.haxx.se

docs/tutorial/2-requests-and-responses.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ Go ahead and test the API from the command line, as we did in [tutorial part 1][
127127

128128
We can get a list of all of the snippets, as before.
129129

130-
http http://127.0.0.1:8000/snippets/ --body
130+
http http://127.0.0.1:8000/snippets/
131131

132+
HTTP/1.1 200 OK
133+
...
132134
[
133135
{
134136
"id": 1,

docs/tutorial/quickstart.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ Create a new Django project named `tutorial`, then start a new app called `quick
2424
django-admin.py startapp quickstart
2525
cd ..
2626

27-
Optionally, install [httpie][httpie] for tastier HTTP requests:
28-
29-
pip install httpie
30-
3127
Now sync your database for the first time:
3228

3329
python manage.py migrate
@@ -163,9 +159,12 @@ We can now access our API, both from the command-line, using tools like `curl`..
163159
]
164160
}
165161

166-
Or with [httpie][httpie], a tastier version of `curl`...
162+
Or using the [httpie][httpie], command line tool...
163+
164+
bash: http -a username:password http://127.0.0.1:8000/users/
167165

168-
bash: http -a username:password http://127.0.0.1:8000/users/ --body
166+
HTTP/1.1 200 OK
167+
...
169168
{
170169
"count": 2,
171170
"next": null,

0 commit comments

Comments
 (0)