Finds Pets by status
client.pets.findByStatus(PetFindByStatusParams { status } query?, RequestOptionsoptions?): PetFindByStatusResponse { name, photoUrls, id, 3 more }
GET/pet/findByStatus
Finds Pets by status
import RpTestDocs1 from 'rp-test-docs-1';
const client = new RpTestDocs1({
apiKey: process.env['PETSTORE_API_KEY'], // This is the default and can be omitted
});
const pets = await client.pets.findByStatus();
console.log(pets);[
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}
]Returns Examples
[
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}
]