Users
Get a user
Retrieve one user by username.
Returns one user by username. The operation declares no security requirement.
Return user details by username.
GET
/user/{username}Username to retrieve. The contract recommends `user1` for testing.
Response
{200}Successful operation
{400}Invalid username supplied
{404}User not found
cURL
curl --request GET \ --url https://petstore3.swagger.io/api/v3/user/user1
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@example.com",
"password": "example-password",
"phone": "5550100",
"userStatus": 1
}The contract also defines a default Unexpected error response without a fixed status or body schema.