Rest API

MOM app rest api documentation

Base URI

http://triffort.com/mytest/mom/api/
API Methods
POST /signup
POST /signin
GET /logout/{uid of the user}
POST /forgetpassword
signup
POST /signup

This api is used to crate new user.

Request body

Object
user_Fname
string
Example:
First Name of the user
user_Lname
string
Example:
Last Name of the user
user_email
string
Example:
user email
user_password
string
Example:
user password(keep it blank in case of fb login)
user_profilepic
string
Example:
base64 string for normal user login and image url if user through FB
user_type
string
Example:
it should be 0 for login through email and 1 for login through FB

Responses

200 OK
Body
Object
status
string
Example:
success
msg
string
Example:
user detail is saved.
uid
string
Example:
system generated unique id for the user
signin
POST /signin

This api is used to login user in the app.

Request body

Object
user_email
string
Example:
user email
user_password
string
Example:
user password
user_type
string
Example:
it should be 0 for email login and 1 for fb login

Responses

200 OK
Body
Object
status
string
Example:
success
uid
string
Example:
system generated unique id for the user
email
string
Example:
user email
user_Fname
string
Example:
user first name
user_Lname
string
Example:
user last name
ProfileImage
string
Example:
user profile image url
Session Logout
GET /logout/{uid of the user}

This api is used for session logout.

Path variables

uid of the user
string optional

Responses

200 OK
Body
Object
status
string
Example:
sucess
msg
string
Example:
User logged out.
Forgot Password
POST /forgetpassword

This api is used to recover user password.

Request body

Object
user_email
string
Example:
user email

Responses

200 OK
Body
Object
status
string
Example:
success
password
string
Example:
user password