Skip to content

Latest commit

 

History

History
125 lines (69 loc) · 3.19 KB

File metadata and controls

125 lines (69 loc) · 3.19 KB

\StoreApi

All URIs are relative to http://petstore.swagger.io/v2

Method HTTP request Description
DeleteOrder Delete /store/order/{orderId} Delete purchase order by ID
GetInventory Get /store/inventory Returns pet inventories by status
GetOrderById Get /store/order/{orderId} Find purchase order by ID
PlaceOrder Post /store/order Place an order for a pet

DeleteOrder

DeleteOrder($orderId)

Delete purchase order by ID

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

Parameters

Name Type Description Notes
orderId string ID of the order that needs to be deleted

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/xml, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetInventory

map[string]int32 GetInventory()

Returns pet inventories by status

Returns a map of status codes to quantities

Parameters

This endpoint does not need any parameter.

Return type

map[string]int32

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOrderById

Order GetOrderById($orderId)

Find purchase order by ID

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

Parameters

Name Type Description Notes
orderId int64 ID of pet that needs to be fetched

Return type

Order

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/xml, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PlaceOrder

Order PlaceOrder($body)

Place an order for a pet

Parameters

Name Type Description Notes
body Order order placed for purchasing the pet

Return type

Order

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/xml, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]