Commit 76fedcc3 by ThaJay

Update 2-requests-and-responses.md

just a small error, the trailing slash in the url should be omitted when adding a .suffix
parent a3e64fbe
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment