From 90d0a8a27f6d853cfd05c8d1eca6218591e3c3a7 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Wed, 7 Dec 2011 11:20:05 +0100 Subject: [PATCH] update --- content/mozilla/introducing-cornice.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/content/mozilla/introducing-cornice.rst b/content/mozilla/introducing-cornice.rst index 93402b9..de9d206 100644 --- a/content/mozilla/introducing-cornice.rst +++ b/content/mozilla/introducing-cornice.rst @@ -47,9 +47,7 @@ or "path". **name** is the name of the variable causing problem, if any, and **description** contains a more detailled message. Let's run this simple service, with `bin/paster serve` and send some queries to -it: - -.. code-block:: shell +it:: $ curl -v http://127.0.0.1:5000/service > GET /service HTTP/1.1 @@ -114,7 +112,7 @@ content-types they can deal with, and this will be checked against the Let's refine a bit our previous example, by specifying which content-types are supported, using the `accept` parameter: -.. code-block:: +.. code-block:: python @service.get(validator=is_awesome, accept=("application/json", "text/json")) def get1(request):