Skip to content

Commit

Permalink
Update tutorial.rst
Browse files Browse the repository at this point in the history
The code in the example suggests that the user handlers are for requests made with POST, not PUT, although it would be more RESTful to use PUT.
  • Loading branch information
jeffmarshall committed Jun 28, 2013
1 parent d9c8eef commit f0a1129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ to add our first service - the users management ::
What we have here is 3 methods on **/users**:

- **GET**: simply return the list of users names -- the keys of _USERS
- **PUT**: adds a new user and returns a unique token
- **POST**: adds a new user and returns a unique token
- **DELETE**: removes the user.

Remarks:

- **PUT** uses the **unique** validator to make sure that the user
- **POST** uses the **unique** validator to make sure that the user
name is not already taken. That validator is also in charge of
generating a unique token associated with the user.
- **GET** users the **valid_token** to verify that a **X-Messaging-Token**
Expand Down

0 comments on commit f0a1129

Please sign in to comment.