diff options
| author | Tom Christie | 2014-08-18 11:10:41 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-08-18 11:10:41 +0100 |
| commit | 623304a19dbbb7bfe67b865edbaf47205bdba429 (patch) | |
| tree | 5154224dbe15415f5613d9a3db76b622ad1d944e /tutorial/quickstart.html | |
| parent | 435ba7e5a88674513e20da19562b311721cc930f (diff) | |
| download | django-rest-framework-623304a19dbbb7bfe67b865edbaf47205bdba429.tar.bz2 | |
Latest docs deploy
Diffstat (limited to 'tutorial/quickstart.html')
| -rw-r--r-- | tutorial/quickstart.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tutorial/quickstart.html b/tutorial/quickstart.html index 5949e4ed..171e7255 100644 --- a/tutorial/quickstart.html +++ b/tutorial/quickstart.html @@ -319,22 +319,22 @@ REST_FRAMEWORK = { <pre class="prettyprint lang-py"><code>python ./manage.py runserver </code></pre> <p>We can now access our API, both from the command-line, using tools like <code>curl</code>...</p> -<pre class="prettyprint lang-py"><code>bash: curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ +<pre class="prettyprint lang-py"><code>bash: curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ { - "count": 2, - "next": null, - "previous": null, + "count": 2, + "next": null, + "previous": null, "results": [ { - "email": "admin@example.com", - "groups": [], - "url": "http://127.0.0.1:8000/users/1/", + "email": "admin@example.com", + "groups": [], + "url": "http://127.0.0.1:8000/users/1/", "username": "admin" - }, + }, { - "email": "tom@example.com", - "groups": [ ], - "url": "http://127.0.0.1:8000/users/2/", + "email": "tom@example.com", + "groups": [ ], + "url": "http://127.0.0.1:8000/users/2/", "username": "tom" } ] |
