GET
/user/{username}Get a user by username
Retrieves the user account identified by a username. Supply username to fetch the corresponding user details, using user1 when testing as suggested by the operation definition. A successful response returns the user object.
usernamestringrequired
The username of the user to retrieve; use `user1` for testing.
200Returns the requested user object with its identifier, username, profile details, contact information, password, and status.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
400Returned when the supplied `username` is invalid.
404Returned when no user exists with the supplied `username`.
defaultUnexpected error
Error handling
A 400 is returned when username is invalid. A 404 is returned when no user exists for the supplied username, so the value must identify an existing user.