summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawouach <sh@defuze.org>2015-07-19 14:27:07 +0200
committerLawouach <sh@defuze.org>2015-07-19 14:27:07 +0200
commit648c611086ce1aac4ef71ea2e3bd9539a09b4046 (patch)
tree2abd64337ea6893fddcdaaf8fa9c641194de2d61
parentc32d1ad6ce3058ee66a4decc8f3ca8a359af0092 (diff)
downloadcherrypy-648c611086ce1aac4ef71ea2e3bd9539a09b4046.tar.gz
a little word aboutd restful in the tutorial
-rw-r--r--docs/tutorials.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/tutorials.rst b/docs/tutorials.rst
index ddc2c47b..3de16031 100644
--- a/docs/tutorials.rst
+++ b/docs/tutorials.rst
@@ -544,6 +544,21 @@ web API to only support plain text, it returns the appropriate
session id stored in the request cookie in each subsequent
request. That is handy.
+.. important::
+
+ It's all about RESTful URLs these days, isn't it?
+
+ It is likely your URL will be made of dynamic parts that you
+ will not be able to match to page handlers. For example,
+ ``/library/12/book/15`` cannot be directly handled by the
+ default CherryPy dispatcher since the segments ``12`` and
+ ``15`` will not be matched to any Python callable.
+
+ This can be easily workaround with two handy CherryPy features
+ explained in the :ref:`advanced section <restful>`.
+
+
+
.. _tut08: