From d87113ff60e0a48c85eb0c8d37b86416312b18a2 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 29 Dec 2011 13:54:13 +0000 Subject: 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. --- docs/examples/blogpost.rst | 2 +- docs/examples/modelviews.rst | 10 +++++----- docs/examples/objectstore.rst | 2 +- docs/examples/pygments.rst | 8 ++++---- docs/examples/views.rst | 10 +++++----- docs/howto/mixin.rst | 4 ++-- docs/howto/usingcurl.rst | 2 +- docs/index.rst | 6 +++--- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/docs/examples/blogpost.rst b/docs/examples/blogpost.rst index be91913d..66d3a3bb 100644 --- a/docs/examples/blogpost.rst +++ b/docs/examples/blogpost.rst @@ -3,7 +3,7 @@ Blog Posts API ============== -* http://api.django-rest-framework.org/blog-post/ +* http://rest.ep.io/blog-post/ The models ---------- diff --git a/docs/examples/modelviews.rst b/docs/examples/modelviews.rst index c60c9f24..a98ac279 100644 --- a/docs/examples/modelviews.rst +++ b/docs/examples/modelviews.rst @@ -7,11 +7,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: @@ -43,16 +43,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."]}} diff --git a/docs/examples/objectstore.rst b/docs/examples/objectstore.rst index 38bdbc98..65d61327 100644 --- a/docs/examples/objectstore.rst +++ b/docs/examples/objectstore.rst @@ -3,7 +3,7 @@ Object Store API ================ -* http://api.django-rest-framework.org/object-store/ +* http://rest.ep.io/object-store/ This example shows an object store API that can be used to store arbitrary serializable content. 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://example.com/my-api/ \ No newline at end of file + curl -X GET -H 'Accept: application/json' -u : http://example.com/my-api/ diff --git a/docs/index.rst b/docs/index.rst index 6038b7df..94032daa 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,11 +11,11 @@ Introduction Django REST framework is a lightweight REST framework for Django, that aims to make it easy to build well-connected, self-describing RESTful Web APIs. -**Browse example APIs created with Django REST framework:** `The Sandbox `_ +**Browse example APIs created with Django REST framework:** `The Sandbox `_ Features: -* Automatically provides an awesome Django admin style `browse-able self-documenting API `_. +* Automatically provides an awesome Django admin style `browse-able self-documenting API `_. * Clean, simple, views for Resources, using Django's new `class based views `_. * Support for ModelResources with out-of-the-box default implementations and input validation. * Pluggable :mod:`.parsers`, :mod:`renderers`, :mod:`authentication` and :mod:`permissions` - Easy to customise. @@ -101,7 +101,7 @@ There are a few real world web API examples included with Django REST framework. All the examples are freely available for testing in the sandbox: - http://api.django-rest-framework.org + http://rest.ep.io (The :ref:`sandbox` resource is also documented.) -- cgit v1.2.3