diff options
| author | Tom Christie | 2014-12-08 16:38:29 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-12-08 16:38:29 +0000 |
| commit | af3fe5a39fda7417b99353b2a1c1ee20785cf5a2 (patch) | |
| tree | 69996ed8116d5ef3f7466d34df0a3710ebc9b37a /docs/tutorial/quickstart.md | |
| parent | 4e9ebb5fe9eee2ef6f21718d9becfb8e94bbbe98 (diff) | |
| parent | 302ec59a5c8b97b5d6be1e50e16a33df51508a81 (diff) | |
| download | django-rest-framework-af3fe5a39fda7417b99353b2a1c1ee20785cf5a2.tar.bz2 | |
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'docs/tutorial/quickstart.md')
| -rw-r--r-- | docs/tutorial/quickstart.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index f72fc7dd..c3f95994 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -159,6 +159,33 @@ 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:password http://127.0.0.1:8000/users/ + + HTTP/1.1 200 OK + ... + { + "count": 2, + "next": null, + "previous": null, + "results": [ + { + "email": "admin@example.com", + "groups": [], + "url": "http://localhost:8000/users/1/", + "username": "paul" + }, + { + "email": "tom@example.com", + "groups": [ ], + "url": "http://127.0.0.1:8000/users/2/", + "username": "tom" + } + ] + } + + Or directly through the browser... ![Quick start image][image] @@ -173,3 +200,4 @@ If you want to get a more in depth understanding of how REST framework fits toge [image]: ../img/quickstart.png [tutorial]: 1-serialization.md [guide]: ../#api-guide +[httpie]: https://github.com/jakubroztocil/httpie#installation |
