GET/user/{username}

Retrieve a user by username

Retrieves a user by username. Supply the username of the user whose details you want to retrieve; user1 is provided as a test value.

1 parameter
usernamestringrequired
The name of the user to retrieve; use `user1` as a test value.

4 status codes
200Returns the user object, including its identifier, username, name, email, password, phone, and status.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
400Returned when the supplied username is invalid.
404Returned when no user is found for the supplied username.
defaultUnexpected error

Error handling

A 400 is returned when the username path parameter is invalid. A 404 is returned when no user is found for the supplied username.