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
category Category
Category ID
Possible values: non-empty
Category name
sub object
Test Sub Category
Dumb Property
The name given to a pet
Possible values: <= 20
The list of URL to a cute photos featuring pet
tags Tag[]
Possible values: >= 1
Tags attached to the pet
Possible values: non-empty
Tag name
Possible values: [available
, pending
, sold
]
Pet status in the store
Possible values: [cat
, dog
, bee
]
Type of a pet
Possible values: [clueless
, lazy
, adventurous
, aggressive
]
Default value: lazy
The measured skill for hunting
Possible values: >= 1
Default value: 1
The size of the pack the dog is from
Average amount of honey produced per day in ounces
Possible values: non-empty
Tag name
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": {},
"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
category Category
Category ID
Possible values: non-empty
Category name
sub object
Test Sub Category
Dumb Property
The name given to a pet
Possible values: <= 20
The list of URL to a cute photos featuring pet
tags Tag[]
Possible values: >= 1
Tags attached to the pet
Possible values: non-empty
Tag name
Possible values: [available
, pending
, sold
]
Pet status in the store
Possible values: [cat
, dog
, bee
]
Type of a pet
Possible values: [clueless
, lazy
, adventurous
, aggressive
]
Default value: lazy
The measured skill for hunting
Possible values: >= 1
Default value: 1
The size of the pack the dog is from
Average amount of honey produced per day in ounces
Possible values: non-empty
Tag name
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/>
<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