Skip to content

Commit 2a6937f

Browse files
committed
tutorial #2 incorrectly showed /item.json instead of /item/.json for format suffixes
1 parent 90c9968 commit 2a6937f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Notice that we're no longer explicitly tying our requests or responses to a give
9696

9797
## Adding optional format suffixes to our URLs
9898

99-
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].
99+
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].
100100

101101
Start by adding a `format` keyword argument to both of the views, like so.
102102

0 commit comments

Comments
 (0)