Rest Users » History » Revision 2
« Previous |
Revision 2/30
(diff)
| Next »
Bevan Rudge, 2011-07-05 01:11
Adding documentation about include=memberships
Users¶
Listing users¶
GET /users.xml
Returns users.
Showing a user¶
GET /users/[id].xml
Returns the user of given id.
GET /users/current.xml
Returns the user whose credentials are used to access the API.
GET /users/3.json?include=memberships
Returns the details about user ID 3, and additional detail about the user's project roles and memberships. There are probably other such undocumented features like this.
Creating a user¶
POST /users.xml
Creates a user.
Parameters:
user(required): a hash of the user attributes, including:login(required): the user loginpassword: the user passwordfirstname(required)lastname(required)mail(required)
Response:
201 Created: user was created422 Unprocessable Entity: user was not created due to validation failures (response body contains the error messages)
Updating a user¶
PUT /users/[id].xml
Parameters:
user(required): a hash of the user attributes
Updates the user of given id.
Deleting a user¶
Deleting a user is not supported yet.
Updated by Bevan Rudge over 14 years ago · 2 revisions