Get user by user name
Path Parameters
- username string required
The name that needs to be fetched. Use user1 for testing.
- 200
- 400
- 404
successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- id int64
pet object
- oneOf
- MOD1
- MOD2
id objectcategory Category
id int64Category ID
name stringPossible values:
non-empty
Category name
sub object
Test Sub Category
prop1 stringDumb Property
name stringThe name given to a pet
photoUrls url[]Possible values:
<= 20
The list of URL to a cute photos featuring pet
friend circular()tags Tag[]
Possible values:
>= 1
Tags attached to the pet
Array [id objectname stringPossible values:
non-empty
Tag name
]status stringPossible values: [
available
,pending
,sold
]Pet status in the store
petType stringPossible values: [
cat
,dog
,bee
]Type of a pet
- cat
- dog
- bee
huntingSkill stringPossible values: [
clueless
,lazy
,adventurous
,aggressive
]Default value:
lazy
The measured skill for hunting
packSize int32Possible values:
>= 1
Default value:
1
The size of the pack the dog is from
honeyPerDay numberAverage amount of honey produced per day in ounces
id objectname stringPossible values:
non-empty
Tag name
- oneOf
- username string
Possible values:
>= 4 characters
User supplied username
- firstName string
Possible values:
non-empty
User first name
- lastName string
Possible values:
non-empty
User last name
- email email
User email address
- password password
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
- phone string
Possible values: Value must match regular expression
/^\+(?:[0-9]-?){6,14}[0-9]$/
User phone number in international format
- userStatus int32
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
- Example (from schema)
Schema
- id int64
pet object
- oneOf
- MOD1
- MOD2
id objectcategory Category
id int64Category ID
name stringPossible values:
non-empty
Category name
sub object
Test Sub Category
prop1 stringDumb Property
name stringThe name given to a pet
photoUrls url[]Possible values:
<= 20
The list of URL to a cute photos featuring pet
friend circular()tags Tag[]
Possible values:
>= 1
Tags attached to the pet
Array [id objectname stringPossible values:
non-empty
Tag name
]status stringPossible values: [
available
,pending
,sold
]Pet status in the store
petType stringPossible values: [
cat
,dog
,bee
]Type of a pet
- cat
- dog
- bee
huntingSkill stringPossible values: [
clueless
,lazy
,adventurous
,aggressive
]Default value:
lazy
The measured skill for hunting
packSize int32Possible values:
>= 1
Default value:
1
The size of the pack the dog is from
honeyPerDay numberAverage amount of honey produced per day in ounces
id objectname stringPossible values:
non-empty
Tag name
- oneOf
- username string
Possible values:
>= 4 characters
User supplied username
- firstName string
Possible values:
non-empty
User first name
- lastName string
Possible values:
non-empty
User last name
- email email
User email address
- password password
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
- phone string
Possible values: Value must match regular expression
/^\+(?:[0-9]-?){6,14}[0-9]$/
User phone number in international format
- userStatus int32
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