Skip to content
x1s edited this page Feb 14, 2012 · 1 revision

Profiles

Method Auth? URL
GET false /profile/:profile
### returns the profile data as: `{"garagem":"garagesale", "senha":"", "nome":"Garagesale App", "email":"info@garagesaleapp.in", "idRole":2, "idState":1, "id":1 }` ### In case of any error it returns: `{"error":"invalid profile"}`
Method Auth? URL
GET false /profile/:email?validate=true
### returns the profile data as: `{"message":"valid"}`

In case of error it returns:

{"error":"taken"} {"error":"invalid email"} {"error":"invalid profile"}

Method Auth? URL
POST true /profile
### params: * token * profile: ` {"garagem":"garagesale", "senha":"u7Sn&5$", "nome":"Garagesale App", "email":"info@garagesaleapp.in" } `
Method Auth? URL
PUT true /profile/:profile
### params: * token * profile: ` {"garagem":"garagesale", "oldPassword":"u7Sn&5$", "newPassword":"u7SnMMA", "newPassword2":"u7SMMA", "nome":"Garagesale App", "email":"info@garagesaleapp.in", "id":1 }`
Method Auth? URL
DELETE true /profile/:profile
### params: * token

Clone this wiki locally