aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial
diff options
context:
space:
mode:
authorMichael Marvick2015-01-25 23:46:27 -0800
committerMichael Marvick2015-01-25 23:46:27 -0800
commit2a6937f381fe514e6cc9165c0aee200bf145788f (patch)
tree94e3261d06a664b519717627686b2e0b7ec4a7dd /docs/tutorial
parent90c9968a70e0a3d14cf4433cd356bcbdd30fce1b (diff)
downloaddjango-rest-framework-2a6937f381fe514e6cc9165c0aee200bf145788f.tar.bz2
tutorial #2 incorrectly showed /item.json instead of /item/.json for format suffixes
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/2-requests-and-responses.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/2-requests-and-responses.md b/docs/tutorial/2-requests-and-responses.md
index c0426969..9315a664 100644
--- a/docs/tutorial/2-requests-and-responses.md
+++ b/docs/tutorial/2-requests-and-responses.md
@@ -96,7 +96,7 @@ Notice that we're no longer explicitly tying our requests or responses to a give
## Adding optional format suffixes to our URLs
-To take advantage of the fact that our responses are no longer hardwired to a single content type let's add support for format suffixes to our API endpoints. Using format suffixes gives us URLs that explicitly refer to a given format, and means our API will be able to handle URLs such as [http://example.com/api/items/4.json][json-url].
+To take advantage of the fact that our responses are no longer hardwired to a single content type let's add support for format suffixes to our API endpoints. Using format suffixes gives us URLs that explicitly refer to a given format, and means our API will be able to handle URLs such as [http://example.com/api/items/4/.json][json-url].
Start by adding a `format` keyword argument to both of the views, like so.