diff options
| author | Marko Tibold | 2012-01-02 21:16:44 +0100 | 
|---|---|---|
| committer | Marko Tibold | 2012-01-02 21:16:44 +0100 | 
| commit | e0b82ce76de261c8f530cb488afb390c4aec13a8 (patch) | |
| tree | b92709d731552217e98ea1855b0c0c3f5d0c3de2 /docs/howto/mixin.rst | |
| parent | 7a3d97a2fc3abeb8a22d7ddb0eafbd4cf34e9f4e (diff) | |
| download | django-rest-framework-e0b82ce76de261c8f530cb488afb390c4aec13a8.tar.bz2 | |
minor style edits
Diffstat (limited to 'docs/howto/mixin.rst')
| -rw-r--r-- | docs/howto/mixin.rst | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/howto/mixin.rst b/docs/howto/mixin.rst index d8b1c4f0..1a84f2ad 100644 --- a/docs/howto/mixin.rst +++ b/docs/howto/mixin.rst @@ -1,8 +1,7 @@  Using Django REST framework Mixin classes  ========================================= -This example demonstrates creating a REST API **without** using Django REST framework's :class:`.Resource` or :class:`.ModelResource`, -but instead using Django :class:`View` class, and adding the :class:`EmitterMixin` class to provide full HTTP Accept header content negotiation, +This example demonstrates creating a REST API **without** using Django REST framework's :class:`.Resource` or :class:`.ModelResource`, but instead using Django's :class:`View` class, and adding the :class:`ResponseMixin` class to provide full HTTP Accept header content negotiation,  a browseable Web API, and much of the other goodness that Django REST framework gives you for free.  .. note:: @@ -26,5 +25,6 @@ Everything we need for this example can go straight into the URL conf...  .. include:: ../../examples/mixin/urls.py      :literal: -That's it.  Auto-magically our API now supports multiple output formats, specified either by using standard HTTP Accept header content negotiation, or by using the `&_accept=application/json` style parameter overrides. +That's it.  Auto-magically our API now supports multiple output formats, specified either by using  +standard HTTP Accept header content negotiation, or by using the `&_accept=application/json` style parameter overrides.  We even get a nice HTML view which can be used to self-document our API.  | 
