Get a User's Profile

Retrieves a user’s profile.

Method

GET /user/{id}/profile

Parameters

Path Parameters

Name Description
id The id of the user to be retrieved.

Result

A JSON object. The user object has the following properties:

Name Value Description
id String The id of the user.
firstName String The first name of the user.
lastName String The last name of the user.
email String The email of the user.

Response Codes

Code Media type Description
200 application/json Request successful.
404 application/json Execution with given id does not exist. See the Introduction for the error response format.

Example

Request

GET /user/jonny1/profile

Response

Status 200.

{"id":"jonny1",
  "firstName":"John",
  "lastName":"Doe",
  "email":"anEmailAddress"}

目录: