Returns pet inventories by status.
GET
/store/inventory
curl -X GET 'https://petstore3.swagger.io/api/v3/store/inventory'package main
import ( "context" "net/http")
func main() { ctx := context.Background() req, err := http.NewRequestWithContext(ctx, "GET", "https://petstore3.swagger.io/api/v3/store/inventory", nil) if err != nil { panic(err) } resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close()}import requests
response = requests.request("GET", "https://petstore3.swagger.io/api/v3/store/inventory")print(response.json())const response = await fetch('https://petstore3.swagger.io/api/v3/store/inventory', { method: 'GET' });const data = await response.json();Returns a map of status codes to quantities.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful operation
Media type application/json
object
key
additional properties
integer format: int32
Example generated
{ "additionalProperty": 1}default
Section titled “default ”Unexpected error