diff options
| author | Tom Christie | 2012-08-25 19:53:10 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-08-25 19:53:10 +0100 |
| commit | 00d3aa21ba3bd5524932a692b75053a24ecbebd2 (patch) | |
| tree | f648ec1299d329eda9d6af2f0703d744df8252d6 /docs/examples/pygments.rst | |
| parent | 7d70948f9b348bdfd970dbd71c5ed2d02269ce3c (diff) | |
| download | django-rest-framework-00d3aa21ba3bd5524932a692b75053a24ecbebd2.tar.bz2 | |
Updated sandbox links
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 4e72f754..4d1bb6ca 100644 --- a/docs/examples/pygments.rst +++ b/docs/examples/pygments.rst @@ -6,11 +6,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://rest.ep.io/pygments/ + A live sandbox instance of this API is available at http://shielded-mountain-6732.herokuapp.com/pygments/ You can browse the API using a web browser, or from the command line:: - curl -X GET http://rest.ep.io/pygments/ -H 'Accept: text/plain' + curl -X GET http://shielded-mountain-6732.herokuapp.com/pygments/ -H 'Accept: text/plain' URL configuration @@ -77,13 +77,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://rest.ep.io/pygments/ + bash: curl -X POST --data 'code=print "hello, world!"' --data 'style=foobar' -H 'X-Requested-With: XMLHttpRequest' http://shielded-mountain-6732.herokuapp.com/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://rest.ep.io/pygments/ + bash: curl -X POST --data-binary '{"code":"print \"hello, world!\"", "style":"foobar"}' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' http://shielded-mountain-6732.herokuapp.com/pygments/ {"detail": {"style": ["Select a valid choice. foobar is not one of the available choices."], "lexer": ["This field is required."]}} |
