Jian130/buysellapp — Issue #8: Update User API
Author: Jian130
Created: 2011-11-27 07:50:34+00:00
State: open

Update User API
Request call: put => /api/v1/users/.json
Required fields: email, auth_token, first_name, last_name

Call returns

examples:

{"user":{"id":"1","email":"test@gmail.com","last_login":null,"created_at":null,"avatar":null,"first_name":"Peter","last_name":"Rau","reputation":null,"gender":null,"response_rate":null,"posts_count":null,"reviews_count":null,"bio":null,"title":null,"school":null,"phone":null,"birthday":null,"timezone":null,"notifications_count":null}}

Test Cases:

Success:
return example:
http status <>

Errors:
http status 400
required field is empty x 3
email already exist
email format error
max length for each field x 5 256