Get user by user name
GET/user/:username
Request
Path Parameters
The name that needs to be fetched. Use user1 for testing.
Responses
- 200
- 400
- 404
successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- Pet
- Tag
Array [
]
- cat
- dog
- bee
pet
object
oneOf
category
Category
Category ID
Category name
Possible values: non-empty
sub
object
Test Sub Category
Dumb Property
The name given to a pet
The list of URL to a cute photos featuring pet
Possible values: <= 20
tags
Tag[]
Tags attached to the pet
Possible values: >= 1
Tag name
Possible values: non-empty
Pet status in the store
Possible values: [available
, pending
, sold
]
petType
string
Type of a pet
Possible values: [cat
, dog
, bee
]
The measured skill for hunting
Possible values: [clueless
, lazy
, adventurous
, aggressive
]
lazy
The size of the pack the dog is from
Possible values: >= 1
1
Average amount of honey produced per day in ounces
Tag name
Possible values: non-empty
User supplied username
Possible values: >= 4 characters
User first name
Possible values: non-empty
User last name
Possible values: non-empty
User email address
User password, MUST contain a mix of upper and lower case letters, as well as digits
Possible values: >= 8 characters
, Value must match regular expression /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/
User phone number in international format
Possible values: Value must match regular expression /^\+(?:[0-9]-?){6,14}[0-9]$/
User status
{
"id": 0,
"pet": {},
"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
- Pet
- Tag
Array [
]
- cat
- dog
- bee
pet
object
oneOf
category
Category
Category ID
Category name
Possible values: non-empty
sub
object
Test Sub Category
Dumb Property
The name given to a pet
The list of URL to a cute photos featuring pet
Possible values: <= 20
tags
Tag[]
Tags attached to the pet
Possible values: >= 1
Tag name
Possible values: non-empty
Pet status in the store
Possible values: [available
, pending
, sold
]
petType
string
Type of a pet
Possible values: [cat
, dog
, bee
]
The measured skill for hunting
Possible values: [clueless
, lazy
, adventurous
, aggressive
]
lazy
The size of the pack the dog is from
Possible values: >= 1
1
Average amount of honey produced per day in ounces
Tag name
Possible values: non-empty
User supplied username
Possible values: >= 4 characters
User first name
Possible values: non-empty
User last name
Possible values: non-empty
User email address
User password, MUST contain a mix of upper and lower case letters, as well as digits
Possible values: >= 8 characters
, Value must match regular expression /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/
User phone number in international format
Possible values: Value must match regular expression /^\+(?:[0-9]-?){6,14}[0-9]$/
User status
<root>
<id>0</id>
<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