aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples/modelviews.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/modelviews.rst')
-rw-r--r--docs/examples/modelviews.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/examples/modelviews.rst b/docs/examples/modelviews.rst
index 24e35f45..b67d50d9 100644
--- a/docs/examples/modelviews.rst
+++ b/docs/examples/modelviews.rst
@@ -5,11 +5,11 @@ Getting Started - Model Views
A live sandbox instance of this API is available:
- http://api.django-rest-framework.org/model-resource-example/
+ http://rest.ep.io/model-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'
Often you'll want parts of your API to directly map to existing django models. Django REST framework handles this nicely for you in a couple of ways:
@@ -41,16 +41,16 @@ And we're done. We've now got a fully browseable API, which supports multiple i
We can visit the API in our browser:
-* http://api.django-rest-framework.org/model-resource-example/
+* http://rest.ep.io/model-resource-example/
Or access it from the command line using curl:
.. code-block:: bash
# Demonstrates API's input validation using form input
- bash: curl -X POST --data 'foo=true' http://api.django-rest-framework.org/model-resource-example/
+ bash: curl -X POST --data 'foo=true' http://rest.ep.io/model-resource-example/
{"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/model-resource-example/
+ bash: curl -X POST -H 'Content-Type: application/json' --data-binary '{"foo":true}' http://rest.ep.io/model-resource-example/
{"detail": {"bar": ["This field is required."], "baz": ["This field is required."]}}