GET
/user/{username}Get a user by username
Retrieves a user record by username. Supply the username path parameter; user1 is provided as a test value.
usernamestringrequired
The username of the user to retrieve. Use `user1` as a test value.
200Returns the user object, including its identifier, username, name, email, password, phone number, and status.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
400Returned when the supplied username is invalid.
404Returned when the user is not found.
defaultUnexpected error
Error handling
A 400 is returned when the username path parameter is invalid. A 404 is returned when no user exists for the supplied username.