aboutsummaryrefslogtreecommitdiffstats
path: root/docs/topics/documenting-your-api.md
diff options
context:
space:
mode:
authorJosé Padilla2014-10-31 13:03:39 -0400
committerDougal Matthews2014-11-25 12:44:11 +0000
commit200e0b17daecd07de6d1f9926a430d29b3ee948f (patch)
tree8a8ac43c96df3a46b6c59f9a15a19553c7fb0e47 /docs/topics/documenting-your-api.md
parent06683b86b2b15153df52fe481b5c4eeb489a80cf (diff)
downloaddjango-rest-framework-200e0b17daecd07de6d1f9926a430d29b3ee948f.tar.bz2
Clean up extra white space
Diffstat (limited to 'docs/topics/documenting-your-api.md')
-rw-r--r--docs/topics/documenting-your-api.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/documenting-your-api.md b/docs/topics/documenting-your-api.md
index e20f9712..d65e251f 100644
--- a/docs/topics/documenting-your-api.md
+++ b/docs/topics/documenting-your-api.md
@@ -54,7 +54,7 @@ The title that is used in the browsable API is generated from the view class nam
For example, the view `UserListView`, will be named `User List` when presented in the browsable API.
-When working with viewsets, an appropriate suffix is appended to each generated view. For example, the view set `UserViewSet` will generate views named `User List` and `User Instance`.
+When working with viewsets, an appropriate suffix is appended to each generated view. For example, the view set `UserViewSet` will generate views named `User List` and `User Instance`.
#### Setting the description
@@ -65,9 +65,9 @@ If the python `markdown` library is installed, then [markdown syntax][markdown]
class AccountListView(views.APIView):
"""
Returns a list of all **active** accounts in the system.
-
+
For more details on how accounts are activated please [see here][ref].
-
+
[ref]: http://example.com/activating-accounts
"""
@@ -84,7 +84,7 @@ You can modify the response behavior to `OPTIONS` requests by overriding the `me
def metadata(self, request):
"""
Don't include the view description in OPTIONS responses.
- """
+ """
data = super(ExampleView, self).metadata(request)
data.pop('description')
return data