Skip to main content

Returns pet inventories by status

GET 

https://petstore3.swagger.io/api/v3/store/inventory

Returns a map of status codes to quantities

Responses

successful operation

Schema
    property name*int32

Authorization: api_key

name: api_keytype: apiKeyin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://petstore3.swagger.io/api/v3/store/inventory");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("api_key", "<api_key>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://petstore3.swagger.io/api/v3
Auth
ResponseClear

Click the Send API Request button above and see the response here!