aboutsummaryrefslogtreecommitdiffstats
path: root/docs/howto
diff options
context:
space:
mode:
Diffstat (limited to 'docs/howto')
-rw-r--r--docs/howto/mixin.rst4
-rw-r--r--docs/howto/usingurllib2.rst8
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/howto/mixin.rst b/docs/howto/mixin.rst
index 1a84f2ad..98a31123 100644
--- a/docs/howto/mixin.rst
+++ b/docs/howto/mixin.rst
@@ -8,11 +8,11 @@ a browseable Web API, and much of the other goodness that Django REST framework
A live sandbox instance of this API is available for testing:
- * http://rest.ep.io/mixin/
+ * http://shielded-mountain-6732.herokuapp.com/mixin/
You can browse the API using a web browser, or from the command line::
- curl -X GET http://rest.ep.io/mixin/
+ curl -X GET http://shielded-mountain-6732.herokuapp.com/mixin/
URL configuration
diff --git a/docs/howto/usingurllib2.rst b/docs/howto/usingurllib2.rst
index 6320dc20..a14f8ddc 100644
--- a/docs/howto/usingurllib2.rst
+++ b/docs/howto/usingurllib2.rst
@@ -11,11 +11,11 @@ Here's an example which does a 'GET' on the `model-resource` example
in the sandbox.::
>>> import urllib2
- >>> r = urllib2.urlopen('htpp://rest.ep.io/model-resource-example')
+ >>> r = urllib2.urlopen('htpp://shielded-mountain-6732.herokuapp.com/model-resource-example')
>>> r.getcode() # Check if the response was ok
200
>>> print r.read() # Examin the response itself
- [{"url": "http://rest.ep.io/model-resource-example/1/", "baz": "sdf", "foo": true, "bar": 123}]
+ [{"url": "http://shielded-mountain-6732.herokuapp.com/model-resource-example/1/", "baz": "sdf", "foo": true, "bar": 123}]
Using the 'POST' method
-----------------------
@@ -29,11 +29,11 @@ to send the current time as as a string value for our POST.::
Now use the `Request` class and specify the 'Content-type'::
- >>> req = urllib2.Request('http://rest.ep.io/model-resource-example/', data=d, headers={'Content-Type':'application/x-www-form-urlencoded'})
+ >>> req = urllib2.Request('http://shielded-mountain-6732.herokuapp.com/model-resource-example/', data=d, headers={'Content-Type':'application/x-www-form-urlencoded'})
>>> resp = urllib2.urlopen(req)
>>> resp.getcode()
201
>>> resp.read()
- '{"url": "http://rest.ep.io/model-resource-example/4/", "baz": "Fri Dec 30 18:22:52 2011", "foo": false, "bar": 123}'
+ '{"url": "http://shielded-mountain-6732.herokuapp.com/model-resource-example/4/", "baz": "Fri Dec 30 18:22:52 2011", "foo": false, "bar": 123}'
That should get you started to write a client for your own api.