diff options
| author | Tom Christie | 2011-12-29 13:54:13 +0000 |
|---|---|---|
| committer | Tom Christie | 2011-12-29 13:54:39 +0000 |
| commit | d87113ff60e0a48c85eb0c8d37b86416312b18a2 (patch) | |
| tree | 9d5778705aed5fdb5e201287d39cde3218a692f5 /docs/examples/pygments.rst | |
| parent | 833bcbf69d96ba6ddbb69defb6be256f34e5412e (diff) | |
| download | django-rest-framework-d87113ff60e0a48c85eb0c8d37b86416312b18a2.tar.bz2 | |
For now just point the examples at rest.ep.io
Would be nice to keep the custom subdomain, but too much of a PITA
right now.
Diffstat (limited to 'docs/examples/pygments.rst')
| -rw-r--r-- | docs/examples/pygments.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/pygments.rst b/docs/examples/pygments.rst index b4bc2c16..62ca9e52 100644 --- a/docs/examples/pygments.rst +++ b/docs/examples/pygments.rst @@ -8,11 +8,11 @@ We're going to provide a simple wrapper around the awesome `pygments <http://pyg .. note:: - A live sandbox instance of this API is available at http://api.django-rest-framework.org/pygments/ + A live sandbox instance of this API is available at http://rest.ep.io/pygments/ 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' + curl -X GET http://rest.ep.io/pygments/ -H 'Accept: text/plain' URL configuration @@ -79,13 +79,13 @@ For example if we make a POST request using form input: .. code-block:: bash - bash: curl -X POST --data 'code=print "hello, world!"' --data 'style=foobar' -H 'X-Requested-With: XMLHttpRequest' http://api.django-rest-framework.org/pygments/ + bash: curl -X POST --data 'code=print "hello, world!"' --data 'style=foobar' -H 'X-Requested-With: XMLHttpRequest' http://rest.ep.io/pygments/ {"detail": {"style": ["Select a valid choice. foobar is not one of the available choices."], "lexer": ["This field is required."]}} Or if we make the same request using JSON: .. code-block:: bash - bash: curl -X POST --data-binary '{"code":"print \"hello, world!\"", "style":"foobar"}' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' http://api.django-rest-framework.org/pygments/ + bash: curl -X POST --data-binary '{"code":"print \"hello, world!\"", "style":"foobar"}' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' http://rest.ep.io/pygments/ {"detail": {"style": ["Select a valid choice. foobar is not one of the available choices."], "lexer": ["This field is required."]}} |
