aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-02-19 13:22:12 +0000
committertom christie tom@tomchristie.com2011-02-19 13:22:12 +0000
commiteac562b2ec04739f0ea62bfa9dabaefd00fdf582 (patch)
treef33868aad3e6bf5ddcc47799b2ed39c6ec3a6a64 /docs/examples
parente4fff6ea6e5422af23c324897ed1cff8f8a6e903 (diff)
downloaddjango-rest-framework-eac562b2ec04739f0ea62bfa9dabaefd00fdf582.tar.bz2
Note the sandbox API a couple more times, just in case they didn't get the message yet.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/modelresources.rst10
-rw-r--r--docs/examples/resources.rst10
2 files changed, 20 insertions, 0 deletions
diff --git a/docs/examples/modelresources.rst b/docs/examples/modelresources.rst
index ec0fa36c..676656a7 100644
--- a/docs/examples/modelresources.rst
+++ b/docs/examples/modelresources.rst
@@ -3,6 +3,16 @@
Getting Started - Model Resources
---------------------------------
+.. note::
+
+ A live sandbox instance of this API is available:
+
+ http://api.django-rest-framework.org/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'
+
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:
#. It automatically provides suitable create/read/update/delete methods for your resources.
diff --git a/docs/examples/resources.rst b/docs/examples/resources.rst
index 0b76c466..f3242421 100644
--- a/docs/examples/resources.rst
+++ b/docs/examples/resources.rst
@@ -3,6 +3,16 @@
Getting Started - Resources
---------------------------
+.. note::
+
+ A live sandbox instance of this API is available:
+
+ http://api.django-rest-framework.org/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'
+
We're going to start off with a simple example, that demonstrates a few things:
#. Creating resources.