GET
/user/{username}Get a user by username
Retrieves a user's full profile by their username. Returns the user object containing all stored details. A 400 is returned for an invalid username format, and a 404 is returned when no user exists with the given username.
usernamestringrequired
The username of the user to retrieve. Use user1 for testing.
200Returns the user object containing id, username, firstName, lastName, email, password, phone, and userStatus.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
400Returned when the username supplied is invalid or malformed.
404Returned when no user exists with the given username.
defaultUnexpected error
Error handling
username is required and must identify an existing user. A 400 is returned if the username format is invalid. A 404 is returned if no user exists with the given username.