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/catalog/api-showdown/api-hub/pet-store/openapi/user/{username}'

Responses

successful operation

Body
idinteger, (int64)
Example:10
usernamestring
Example:"theUser"
firstNamestring
Example:"John"
lastNamestring
Example:"James"
emailstring
Example:"john@email.com"
passwordstring
Example:12345
phonestring
Example:12345
userStatusinteger, (int32)

User Status

Example:1
Response
<user>
  <id>10</id>
  <username>theUser</username>
  <firstName>John</firstName>
  <lastName>James</lastName>
  <email>john@email.com</email>
  <password>12345</password>
  <phone>12345</phone>
  <userStatus>1</userStatus>
</user>