Get user by user name
Path Parameters
- usernamerequired
The name that needs to be fetched. Use user1 for testing.
Responses
- 200
successful operation
- 400
Invalid username supplied
- 404
User not found
GET/user/{username}
curl https://petstore.swagger.io/v2/user/ \
--header 'Api_key: YOUR_SECRET_TOKEN'
{
"id": 1,
"username": "…",
"firstName": "…",
"lastName": "…",
"email": "…",
"password": "…",
"phone": "…",
"userStatus": 1
}