From 6cb0180fb53e9c9e930beca8b2c97819b7bdfe53 Mon Sep 17 00:00:00 2001 From: aviau Date: Fri, 3 Oct 2014 20:32:24 -0400 Subject: [PATCH] Doc: status= -> status_code= Change-Id: Ic4f32a8d1b96aea80b4c3032cdea6a608fe0bf81 --- doc/functions.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/functions.rst b/doc/functions.rst index fe3330c..da56d25 100644 --- a/doc/functions.rst +++ b/doc/functions.rst @@ -142,11 +142,11 @@ The default status codes returned by WSME are 200, 400 (if the client sends inva inputs) and 500 (for server-side errors). Since a proper Rest API should use different return codes (201, etc), one can -use the 'status=' option of @signature to do so. +use the 'status_code=' option of @signature to do so. .. code-block:: python - @signature(Author, body=Author, status=201) + @signature(Author, body=Author, status_code=201) def create_author(data): # ... return data @@ -159,7 +159,7 @@ code: .. code-block:: python - @signature(Author, body=Author, status=202) + @signature(Author, body=Author, status_code=202) def update_author(data): # ... response = Response(data)