Petstore API

Uploads an image.

Upload image of the pet.

post
/api/v3/pet/{petId}/uploadImage

Query Parameters

additionalMetadatastring

Additional Metadata

Path Parameters

petIdinteger(int64)required

Body

application/octet-stream
string

Response

application/json

successful operation

ApiResponse

codeinteger(int32)
typestring
messagestring
post/pet/{petId}/uploadImage

Body

No file selected
 
Invalid URL value '/api/v3/pet//uploadImage'
- missing protocol
application/json

store

Access to Petstore orders

Returns pet inventories by status.

Returns a map of status codes to quantities.

get
/api/v3/store/inventory

Response

application/json

successful operation

object
get/store/inventory
 
Invalid URL value '/api/v3/store/inventory'
- missing protocol
application/json

Place an order for a pet.

Place a new order in the store.

post
/api/v3/store/order

Body

Order

idinteger(int64)

Example:10

petIdinteger(int64)

Example:198772

quantityinteger(int32)

Example:7

shipDatestring(date-time)
statusstring

Order Status

Allowed values:placedapproveddelivered

Example:approved

completeboolean

Response

application/json

successful operation

Order

idinteger(int64)

Example:10

petIdinteger(int64)

Example:198772

quantityinteger(int32)

Example:7

shipDatestring(date-time)
statusstring

Order Status

Allowed values:placedapproveddelivered

Example:approved

completeboolean
post/store/order

Body

{}
 
Invalid URL value '/api/v3/store/order'
- missing protocol
application/json

Find purchase order by ID.

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

get
/api/v3/store/order/{orderId}

Path Parameters

orderIdinteger(int64)required

Response

successful operation

Order

idinteger(int64)

Example:10

petIdinteger(int64)

Example:198772

quantityinteger(int32)

Example:7

shipDatestring(date-time)
statusstring

Order Status

Allowed values:placedapproveddelivered

Example:approved

completeboolean
get/store/order/{orderId}
 
Invalid URL value '/api/v3/store/order/'
- missing protocol