API Reference
Reference for the API
JavaScript
import Dasdk from 'dasdk'; const client = new Dasdk({ apiKey: 'My API Key', }); const pets = await client.pet.findByStatus(); console.log(pets);
[ { "name": "doggie", "photoUrls": [ "<string>" ], "id": 10, "category": { "id": 1, "name": "Dogs" }, "tags": [ { "id": 123, "name": "<string>" } ], "status": "available" } ]
Multiple status values can be provided with comma separated strings
Status values that need to be considered for filter
available
pending
sold
successful operation
"doggie"
10
Show child attributes
1
"Dogs"
pet status in the store