Get user by user name

GET /user/{username}

Path parameters

  • username string Required

    The name that needs to be fetched. Use user1 for testing.

Responses

GET /user/{username}
curl \
 -X GET /v3/user/{username}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <id type="integer">10</id>
  <username>theUser</username>
  <firstName>John</firstName>
  <lastName>James</lastName>
  <email>john@email.com</email>
  <password type="integer">12345</password>
  <phone type="integer">12345</phone>
  <userStatus type="integer">1</userStatus>
</root>
Response examples (200)
{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": 12345,
  "phone": 12345,
  "userStatus": 1
}