Skip to content

Get user by user name

Request

Path
usernamestringrequired

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

curl -i -X GET \
  'https://innovario.apishowdown.com/_mock/petstore/user/{username}'

Responses

successful operation

Body
One of:
idinteger, (int64)(Id)read-only
petPettie (object) or Tag (object)
One of:
usernamestring, >= 4 characters

User supplied username

Example:"John78"
firstNamestring, non-empty

User first name

Example:"John"
lastNamestring, non-empty

User last name

Example:"Smith"
emailstring, (email)

User email address

Example:"john.smith@example.com"
passwordstring, (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

Example:"drowssaP123"
phonestring/^\+(?:[0-9]-?){6,14}[0-9]$/required

User phone number in international format

Example:"+1-202-555-0192"
userStatusinteger, (int32)

User status

Value:10
imagestring, base64

User image

addressesArray of items, <= 10 characters, >= 0 items
Response
{ "id": 0, "pet": { "id": 0, "category": {}, "name": "Guru", "photoUrls": [], "friend": {}, "tags": [], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }, "username": "John78", "firstName": "John", "lastName": "Smith", "email": "john.smith@example.com", "password": "drowssaP123", "phone": "+1-202-555-0192", "userStatus": 10, "image": "string", "addresses": [ {}, 0 ] }