Skip to main content

Get user by user name

Path Parameters
username string REQUIRED

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

Responses
200

successful operation

Schema OPTIONAL
id int64 OPTIONAL
pet OPTIONAL
username string OPTIONAL

Possible values: 4 ≤ length

User supplied username

firstName string OPTIONAL

Possible values: 1 ≤ length

User first name

lastName string OPTIONAL

Possible values: 1 ≤ length

User last name

email email OPTIONAL

User email address

password password OPTIONAL

Possible values: 8 ≤ length, Value must match regular expression /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/

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

phone string OPTIONAL

Possible values: Value must match regular expression /^\+(?:[0-9]-?){6,14}[0-9]$/

User phone number in international format

userStatus int32 OPTIONAL

User status

400

Invalid username supplied

404

User not found