mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-13 13:16:55 +03:00
Merge pull request #3268 from ThaJay/patch-1
Update 2-requests-and-responses.md
This commit is contained in:
commit
7bfc147cc2
|
@ -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:
|
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.json # JSON suffix
|
||||||
http http://127.0.0.1:8000/snippets/.api # Browsable API 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.
|
Similarly, we can control the format of the request that we send, using the `Content-Type` header.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user