visual-chronicle

Get user by ID

Returns an array of user objects that contains only the user specified by the id parameter, if it exists.

URL

{server_url}/users/{id}

Params

Parameter name Type Description
id number The record ID of the user to return

Request headers

None

Request body

None

Return body

[
    {
      "id": 1,
      "name": "Alice Johnson",
      "email": "alice@example.com"
    }
]

Return status

Status value Return status Description
200 Success Requested data returned successfully
404 Error Specified user record not found
ECONNREFUSED N/A Service is offline. Start the service and try again.