API documentation

View Account

GET /api/car_driver/edit

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service returns account details of the logged in user.

Response

Status Code: 200 if OK

Response PARAMETERS

Parameter name Parameter type Description
email string email of the user
first_name string first name of the user
last_name string last name of the user
phone string phone number of the user
birthdate string 'yyyy-mm-dd'
gender string gender of the user; accepted values 'Male'/'Female'
image_url string url of the profile picture of the user
home_location object home location of the user(should not be used for now)
work_location object work location of the user(should not be used for now)
newsletter bool true if user accepts newsletter
{
  "email": "test1@example.com",
  "first_name": "test",
  "last_name": "test",
  "phone": "1234567890",
  "birthdate": "1988-12-23 00:00:00",
  "gender": "Male",
  "newsletter": false,
  "image_url": "http://localhost:3000/uploads/image/image/31/south-georgia-antarctica-penguin_89554_990x742.jpg",
  "home_location": null,
  "work_location": null,
  "has_valid_card": false
}

Status Code: 401 when sending bad access token