Skip to content

Petstore

Reference


This is a sample Pet Store Server based on the OpenAPI 3.0 specification.

Version: 1


Connections

Version: 1

OAuth2 Implicit

Properties

NameTypeControl TypeDescription
Client IdSTRINGTEXT
Client SecretSTRINGTEXT

API Key

Properties

NameTypeControl TypeDescription
KeySTRINGTEXT
ValueSTRINGTEXT

Triggers


Actions

Add a new pet to the store

Add a new pet to the store

Properties

NameTypeControl TypeDescription
Pet{INTEGER(id), STRING(name), {INTEGER(id), STRING(name)}(category), [STRING](photoUrls), [{INTEGER(id), STRING(name)}](tags), STRING(status)}OBJECT_BUILDER

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
NameSTRING
Category{INTEGER(id), STRING(name)}
Photo Urls[STRING]
Tags[{INTEGER(id), STRING(name)}]
StatusSTRING

Update an existing pet

Update an existing pet by Id

Properties

NameTypeControl TypeDescription
Pet{INTEGER(id), STRING(name), {INTEGER(id), STRING(name)}(category), [STRING](photoUrls), [{INTEGER(id), STRING(name)}](tags), STRING(status)}OBJECT_BUILDER

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
NameSTRING
Category{INTEGER(id), STRING(name)}
Photo Urls[STRING]
Tags[{INTEGER(id), STRING(name)}]
StatusSTRING

Finds Pets by status

Multiple status values can be provided with comma separated strings

Properties

NameTypeControl TypeDescription
StatusSTRINGSELECTStatus values that need to be considered for filter

Output

Type: ARRAY

Properties

TypeControl Type
{INTEGER(id), STRING(name), {INTEGER(id), STRING(name)}(category), [STRING](photoUrls), [{INTEGER(id), STRING(name)}](tags), STRING(status)}OBJECT_BUILDER

Finds Pets by tags

Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

Properties

NameTypeControl TypeDescription
Tags[STRING]ARRAY_BUILDERTags to filter by

Output

Type: ARRAY

Properties

TypeControl Type
{INTEGER(id), STRING(name), {INTEGER(id), STRING(name)}(category), [STRING](photoUrls), [{INTEGER(id), STRING(name)}](tags), STRING(status)}OBJECT_BUILDER

Deletes a pet

delete a pet

Properties

NameTypeControl TypeDescription
Api KeySTRINGTEXT
Pet IdINTEGERINTEGERPet id to delete

Find pet by ID

Returns a single pet

Properties

NameTypeControl TypeDescription
Pet IdINTEGERINTEGERID of pet to return

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
NameSTRING
Category{INTEGER(id), STRING(name)}
Photo Urls[STRING]
Tags[{INTEGER(id), STRING(name)}]
StatusSTRING

Updates a pet in the store with form data

Properties

NameTypeControl TypeDescription
Pet IdINTEGERINTEGERID of pet that needs to be updated
NameSTRINGTEXTName of pet that needs to be updated
StatusSTRINGTEXTStatus of pet that needs to be updated

uploads an image

Properties

NameTypeControl TypeDescription
Pet IdINTEGERINTEGERID of pet to update
Additional MetadataSTRINGTEXTAdditional Metadata
FILE_ENTRYFILE_ENTRY

Output

Type: OBJECT

Properties

TypeControl Type
CodeINTEGER
TypeSTRING
MessageSTRING

Returns pet inventories by status

Returns a map of status codes to quantities

Properties

NameTypeControl TypeDescription

Output

Type: OBJECT

Place an order for a pet

Place a new order in the store

Properties

NameTypeControl TypeDescription
Order{INTEGER(id), INTEGER(petId), INTEGER(quantity), DATE_TIME(shipDate), STRING(status), BOOLEAN(complete)}OBJECT_BUILDER

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
Pet IdINTEGER
QuantityINTEGER
Ship DateDATE_TIME
StatusSTRING
CompleteBOOLEAN

Delete purchase order by ID

For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

Properties

NameTypeControl TypeDescription
Order IdINTEGERINTEGERID of the order that needs to be deleted

Find purchase order by ID

For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.

Properties

NameTypeControl TypeDescription
Order IdINTEGERINTEGERID of order that needs to be fetched

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
Pet IdINTEGER
QuantityINTEGER
Ship DateDATE_TIME
StatusSTRING
CompleteBOOLEAN

Create user

This can only be done by the logged in user.

Properties

NameTypeControl TypeDescription
User{INTEGER(id), STRING(username), STRING(firstName), STRING(lastName), STRING(email), STRING(password), STRING(phone), INTEGER(userStatus)}OBJECT_BUILDER

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
UsernameSTRING
First NameSTRING
Last NameSTRING
EmailSTRING
PasswordSTRING
PhoneSTRING
User StatusINTEGER

Creates list of users with given input array

Creates list of users with given input array

Properties

NameTypeControl TypeDescription
Items[{INTEGER(id), STRING(username), STRING(firstName), STRING(lastName), STRING(email), STRING(password), STRING(phone), INTEGER(userStatus)}]ARRAY_BUILDER

Output

Type: ARRAY

Properties

TypeControl Type
{INTEGER(id), STRING(username), STRING(firstName), STRING(lastName), STRING(email), STRING(password), STRING(phone), INTEGER(userStatus)}OBJECT_BUILDER

Delete user

This can only be done by the logged in user.

Properties

NameTypeControl TypeDescription
UsernameSTRINGTEXTThe name that needs to be deleted

Get user by user name

Properties

NameTypeControl TypeDescription
UsernameSTRINGTEXTThe name that needs to be fetched. Use user1 for testing.

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
UsernameSTRING
First NameSTRING
Last NameSTRING
EmailSTRING
PasswordSTRING
PhoneSTRING
User StatusINTEGER

Update user

This can only be done by the logged in user.

Properties

NameTypeControl TypeDescription
UsernameSTRINGTEXTname that need to be deleted
User{INTEGER(id), STRING(username), STRING(firstName), STRING(lastName), STRING(email), STRING(password), STRING(phone), INTEGER(userStatus)}OBJECT_BUILDER

Output

Type: OBJECT

Properties

TypeControl Type
IdINTEGER
UsernameSTRING
First NameSTRING
Last NameSTRING
EmailSTRING
PasswordSTRING
PhoneSTRING
User StatusINTEGER