diff options
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" } ] |
