diff options
| author | tom christie tom@tomchristie.com | 2011-02-19 13:12:35 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-02-19 13:12:35 +0000 |
| commit | e4fff6ea6e5422af23c324897ed1cff8f8a6e903 (patch) | |
| tree | 030c0d0a02e25ffdef43781fbc815dbce48dd16d /docs/examples/pygments.rst | |
| parent | 57b3a372f2122d022f9d6f43818e5fe9d318ce03 (diff) | |
| download | django-rest-framework-e4fff6ea6e5422af23c324897ed1cff8f8a6e903.tar.bz2 | |
Clean up the docs
Diffstat (limited to 'docs/examples/pygments.rst')
| -rw-r--r-- | docs/examples/pygments.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/examples/pygments.rst b/docs/examples/pygments.rst index 6ba2805f..decc2f65 100644 --- a/docs/examples/pygments.rst +++ b/docs/examples/pygments.rst @@ -1,5 +1,7 @@ -Resource with form validation - A pygments pastebin -=================================================== +.. _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. @@ -8,12 +10,10 @@ We're going to provide a simple wrapper around the awesome `pygments <http://pyg A live sandbox instance of this API is available at http://api.django-rest-framework.org/pygments/ - You can browse the API using a web browser(1), or from the command line(2):: + You can browse the API using a web browser, or from the command line:: curl -X GET http://api.django-rest-framework.org/pygments/ -H 'Accept: text/plain' - #. Except for Internet Explorer. Because it's `dumb <http://www.gethifi.com/blog/browser-rest-http-accept-headers>`_. - #. See `using CURL with django-rest-framework <http://django-rest-framework.org/howto/usingcurl.html>`_ for more details. URL configuration ----------------- |
