aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples/views.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/views.rst')
-rw-r--r--docs/examples/views.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/examples/views.rst b/docs/examples/views.rst
index 0e02aa29..db0db0d7 100644
--- a/docs/examples/views.rst
+++ b/docs/examples/views.rst
@@ -5,11 +5,11 @@ Getting Started - Views
A live sandbox instance of this API is available:
- http://api.django-rest-framework.org/resource-example/
+ http://rest.ep.io/resource-example/
You can browse the API using a web browser, or from the command line::
- curl -X GET http://api.django-rest-framework.org/resource-example/ -H 'Accept: text/plain'
+ curl -X GET http://rest.ep.io/resource-example/ -H 'Accept: text/plain'
We're going to start off with a simple example, that demonstrates a few things:
@@ -41,16 +41,16 @@ Now we'll write our views. The first is a read only view that links to three in
That's us done. Our API now provides both programmatic access using JSON and XML, as well a nice browseable HTML view, so we can now access it both from the browser:
-* http://api.django-rest-framework.org/resource-example/
+* http://rest.ep.io/resource-example/
And from the command line:
.. code-block:: bash
# Demonstrates API's input validation using form input
- bash: curl -X POST --data 'foo=true' http://api.django-rest-framework.org/resource-example/1/
+ bash: curl -X POST --data 'foo=true' http://rest.ep.io/resource-example/1/
{"detail": {"bar": ["This field is required."], "baz": ["This field is required."]}}
# Demonstrates API's input validation using JSON input
- bash: curl -X POST -H 'Content-Type: application/json' --data-binary '{"foo":true}' http://api.django-rest-framework.org/resource-example/1/
+ bash: curl -X POST -H 'Content-Type: application/json' --data-binary '{"foo":true}' http://rest.ep.io/resource-example/1/
{"detail": {"bar": ["This field is required."], "baz": ["This field is required."]}}