Get user by user name

Request
path Parameters
username
required
string

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

get
/user/{username}
Responses

200

successful operation

Response Schema:
id
integer <int64> (Id)
Pet (object) or Tag (object)
username
string >= 4 characters

User supplied username

firstName
string non-empty

User first name

lastName
string non-empty

User last name

email
string <email>

User email address

password
string <password> >= 8 characters /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/

User password, MUST contain a mix of upper and lower case letters, as well as digits

phone
string/^\+(?:[0-9]-?){6,14}[0-9]$/

User phone number in international format

userStatus
integer <int32>

User status

400

Invalid username supplied

404

User not found

Response samples
{ "id": 0, "pet": { "id": 0, "name": "Guru", "friend": { }, "status": "available", "petType": "string" }, "username": "John78", "firstName": "John", "lastName": "Smith", "email": "john.smith@example.com", "password": "drowssaP123", "phone": "+1-202-555-0192", "userStatus": 0 }