From 76fedcc3484b15882992d69a199cceae06ddfb34 Mon Sep 17 00:00:00 2001 From: ThaJay Date: Wed, 12 Aug 2015 19:49:43 +0200 Subject: [PATCH] Update 2-requests-and-responses.md just a small error, the trailing slash in the url should be omitted when adding a .suffix --- docs/tutorial/2-requests-and-responses.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/2-requests-and-responses.md b/docs/tutorial/2-requests-and-responses.md index 51cea4f1b..c2e7e1c0a 100644 --- a/docs/tutorial/2-requests-and-responses.md +++ b/docs/tutorial/2-requests-and-responses.md @@ -157,8 +157,8 @@ We can control the format of the response that we get back, either by using the Or by appending a format suffix: - http http://127.0.0.1:8000/snippets/.json # JSON suffix - http http://127.0.0.1:8000/snippets/.api # Browsable API suffix + http http://127.0.0.1:8000/snippets.json # JSON suffix + http http://127.0.0.1:8000/snippets.api # Browsable API suffix Similarly, we can control the format of the request that we send, using the `Content-Type` header.