Axerity

Get user by username

Get user details based on the username. Use user1 for testing.

GET https://petstore3.swagger.io/api/v3/user/{username}

Path parameters

username string required

The name of the user to fetch.

Returns

Returns the User.

id integer

Unique id for the user.

username string

The user’s login name.

Request
curl https://petstore3.swagger.io/api/v3/user/user1
Response
{ "id": 10, "username": "user1", "email": "john@email.com" }