Get user by user name
Path Parameters
The name that needs to be fetched. Use user1 for testing.
- 200
- 400
- 404
successful operation
Schema
pet object
object
object
Possible values: >= 4 characters
User supplied username
Possible values: non-empty
User first name
Possible values: non-empty
User last name
User email address
Possible values: >= 8 characters, 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
Possible values: Value must match regular expression /^\+(?:[0-9]-?){6,14}[0-9]$/
User phone number in international format
User status
{
"id": 0,
"pet": {
"id": 0,
"category": {
"id": 0,
"name": "string",
"sub": {
"prop1": "string"
}
},
"name": "Guru",
"photoUrls": [
"string"
],
"friend": {},
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available",
"petType": {
"huntingSkill": "adventurous"
}
},
"username": "John78",
"firstName": "John",
"lastName": "Smith",
"email": "john.smith@example.com",
"password": "drowssaP123",
"phone": "+1-202-555-0192",
"userStatus": 0
}
Schema
pet object
object
object
Possible values: >= 4 characters
User supplied username
Possible values: non-empty
User first name
Possible values: non-empty
User last name
User email address
Possible values: >= 8 characters, 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
Possible values: Value must match regular expression /^\+(?:[0-9]-?){6,14}[0-9]$/
User phone number in international format
User status
<root>
<id>0</id>
<pet>
<id>0</id>
<category>
<id>0</id>
<name>string</name>
<sub>
<prop1>string</prop1>
</sub>
</category>
<name>Guru</name>
<photoUrls>string</photoUrls>
<friend/>
<tags>
<id>0</id>
<name>string</name>
</tags>
<status>available</status>
<petType>
<huntingSkill>adventurous</huntingSkill>
</petType>
</pet>
<username>John78</username>
<firstName>John</firstName>
<lastName>Smith</lastName>
<email>john.smith@example.com</email>
<password>drowssaP123</password>
<phone>+1-202-555-0192</phone>
<userStatus>0</userStatus>
</root>
Invalid username supplied
User not found