This operation retrieves all pets associated with a specific shelter.
GET /shelters/{id}/pets
| Parameter | Type | Description |
|---|---|---|
id |
integer | The unique identifier of the shelter |
This operation doesn’t require query parameters.
| Header | Value | Required |
|---|---|---|
Content-Type |
application/json |
No |
This operation doesn’t require a request body.
curl -X GET {base_url}/shelters/1/pets
Response: 200 OK with matches
[
{
"name": "Luna",
"species": "cat",
"breed": "Domestic Shorthair",
"age_months": 18,
"gender": "female",
"size": "small",
"temperament": "playful, affectionate",
"medical": {
"spayed_neutered": true,
"vaccinations": ["fvrcp", "rabies"]
},
"description": "Luna is a playful tabby who loves
interactive toys and sunny windows.",
"shelter_id": 1,
"status": "available",
"intake_date": "2025-09-01",
"id": 1
},
{
"name": "Oliver",
"species": "cat",
"breed": "Maine Coon",
"age_months": 24,
"gender": "male",
"size": "large",
"temperament": "gentle, calm",
"medical": {
"spayed_neutered": true,
"vaccinations": ["fvrcp", "rabies"]
},
"description": "Oliver is a gentle giant who loves
to be brushed and cuddled.",
"shelter_id": 1,
"status": "available",
"intake_date": "2025-08-15",
"id": 5
}
]
Response: 200 OK without any matches
[]
Successful responses include a list of pets with the following:
name : Pet’s namespecies : Pet’s speciesbreed : Pet’s breedage_months : Pet’s age in monthsgender : Pet’s gendersize : Pet’s size categorytemperament : Pet’s personality traits and behavioral characteristicsmedical : Pet’s medical informationdescription : Pet’s personality, needs, and backgroundshelter_id : ID of pet’s current shelterstatus : Pet’s adoption statusintake_date : Date the pet entered the shelterid : Pet’s unique record ID