Petstore API

Logs out current logged in user session.

Log user out of the system.

get
/api/v3/user/logout

Response

successful operation

get/user/logout
 
Invalid URL value '/api/v3/user/logout'
- missing protocol

Get user by user name.

Get user detail based on username.

get
/api/v3/user/{username}

Path Parameters

usernamestringrequired

The name that needs to be fetched. Use user1 for testing

Response

successful operation

User

idinteger(int64)

Example:10

usernamestring

Example:theUser

firstNamestring

Example:John

lastNamestring

Example:James

emailstring

Example:john@email.com

passwordstring

Example:12345

phonestring

Example:12345

userStatusinteger(int32)

User Status

Example:1

get/user/{username}
 
Invalid URL value '/api/v3/user/'
- missing protocol

Update user resource.

This can only be done by the logged in user.

put
/api/v3/user/{username}

Path Parameters

usernamestringrequired

name that need to be deleted

Body

Update an existent user in the store

User

idinteger(int64)

Example:10

usernamestring

Example:theUser

firstNamestring

Example:John

lastNamestring

Example:James

emailstring

Example:john@email.com

passwordstring

Example:12345

phonestring

Example:12345

userStatusinteger(int32)

User Status

Example:1

Response

successful operation

put/user/{username}

Body

{}
 
Invalid URL value '/api/v3/user/'
- missing protocol

Delete user resource.

This can only be done by the logged in user.

delete
/api/v3/user/{username}

Path Parameters

usernamestringrequired

The name that needs to be deleted

Response

User deleted

delete/user/{username}
 
Invalid URL value '/api/v3/user/'
- missing protocol

Order

object
idinteger(int64)

Example:10

petIdinteger(int64)

Example:198772

quantityinteger(int32)

Example:7

shipDatestring(date-time)
statusstring

Order Status

Allowed values:placedapproveddelivered

Example:approved

completeboolean
Example