  .. _codehighlighting:
  
  Code Highlighting API
  =====================
  
  This example demonstrates creating a REST API using a :class:`.Resource` with some form validation on the input.
  We're going to provide a simple wrapper around the awesome `pygments <http://pygments.org/>`_ library, to create the Web API for a simple pastebin.
 
</s> remove #. :ref:`objectstore` - Using :class:`views.View` classes for APIs that do not map to models.
#. :ref:`codehighlighting` - Using :class:`views.View` classes with forms for input validation.
#. :ref:`blogposts` - Using :class:`views.ModelView` classes for APIs that map directly to models.
 </s> add #. :doc:`examples/objectstore` - Using :class:`views.View` classes for APIs that do not map to models.
#. :doc:`examples/pygments` - Using :class:`views.View` classes with forms for input validation.
#. :doc:`examples/blogpost` - Using :class:`views.ModelView` classes for APIs that map directly to models. </s> remove #. :ref:`views`
#. :ref:`modelviews`
 </s> add #. :doc:`examples/views`
#. :doc:`examples/modelviews` </s> remove sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'djangorestframework'))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'examples'))
 </s> add sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'djangorestframework')) # for documenting the library
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'examples')) # for importing settings </s> remove (The :ref:`sandbox` resource is also documented.)

 </s> add (The :doc:`examples/sandbox` resource is also documented.) </s> remove .. _objectstore:

 </s> add 


  Code Highlighting API
  =====================
  
  This example demonstrates creating a REST API using a :class:`.Resource` with some form validation on the input.
  We're going to provide a simple wrapper around the awesome `pygments <http://pygments.org/>`_ library, to create the Web API for a simple pastebin.
replace replace keep keep keep keep keep
 Some initial refactoring of the docs. 
docs/examples/pygments.rst