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($orderId)
Delete purchase order by ID
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Name | Type | Description | Notes |
---|---|---|---|
orderId | string | ID of the order that needs to be deleted |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]int32 GetInventory()
Returns pet inventories by status
Returns a map of status codes to quantities
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Order GetOrderById($orderId)
Find purchase order by ID
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Name | Type | Description | Notes |
---|---|---|---|
orderId | int64 | ID of pet that needs to be fetched |
No authorization required
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Order PlaceOrder($body)
Place an order for a pet
Name | Type | Description | Notes |
---|---|---|---|
body | Order | order placed for purchasing the pet |
No authorization required
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]