2011-12-30 19:13:24 +04:00
|
|
|
Examples
|
|
|
|
========
|
|
|
|
|
|
|
|
There are a few real world web API examples included with Django REST framework.
|
|
|
|
|
2012-02-27 05:51:26 +04:00
|
|
|
#. :doc:`examples/resourceexample`
|
|
|
|
#. :doc:`examples/modelresourceexample`
|
2011-12-30 19:13:24 +04:00
|
|
|
#. :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.
|
2012-02-27 05:51:26 +04:00
|
|
|
#. :doc:`examples/permissions` - How to protect your API using authentication and throttling
|
2011-12-30 19:13:24 +04:00
|
|
|
|
|
|
|
All the examples are freely available for testing in the sandbox:
|
|
|
|
|
|
|
|
http://rest.ep.io
|
|
|
|
|
2012-02-27 05:51:26 +04:00
|
|
|
There is also documentation describing how the :doc:`examples/sandbox` resource itself is implemented.
|
2011-12-30 19:13:24 +04:00
|
|
|
|
2011-12-30 04:36:43 +04:00
|
|
|
.. toctree::
|
2012-02-27 05:51:26 +04:00
|
|
|
:hidden:
|
2011-12-30 19:13:24 +04:00
|
|
|
:glob:
|
2011-12-30 04:36:43 +04:00
|
|
|
|
2011-12-30 19:13:24 +04:00
|
|
|
examples/*
|