Skip to content

Instantly share code, notes, and snippets.

@tridungpham
Created July 21, 2014 06:23
Show Gist options
  • Save tridungpham/c93f2b7eb26d8710439a to your computer and use it in GitHub Desktop.
Save tridungpham/c93f2b7eb26d8710439a to your computer and use it in GitHub Desktop.
New Markdown document

##Register new user URI : http://realphim.com/api/user/register ###Input

  • username : required, length [3-32], alpha numeric
  • password : required, length [3-32]
  • email : required, valid email
  • first_name : required, length [1-100]
  • last_name : required, length [1-100]

Output

{
	valid: true, // false on registration failed
	message: "Register successfully message" // or error message
}

Update user information

URL: http://realphim.com/api/user/update

Input

  • email : required, valid email
  • first_name : required, length [3-32]
  • last_name : required, length [3-32]
  • day : required, integer, [1-31]
  • month: required, integer , [1-12]
  • year: required, integer, [1970 - current year]
  • location : optional, length [1-100]
  • gender : required, 0 - man, 1 - woman
  • password : optional

Output

{
	valid: true // false on update failed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment