---
title: "List attached Pets"
method: GET
path: "/categories/{id}/pets"
tags: ["Category"]
---

# List attached Pets

`GET /categories/{id}/pets`

List attached Pets.

## Path parameters

- `id` integer, required

## Query parameters

- `page` integer
- `itemsPerPage` integer

## Response `200`

result Categories list

- CategoryPetsList[]
  - `id` integer, required
  - `name` string, required
  - `nicknames` string[]
  - `age` integer

## Other responses

- `400` — invalid input, data invalid
- `404` — resource not found
- `409` — conflicting resources
- `500` — unexpected error

## Changes

- **2022-01-05** `2e2267c08377` — 2 info
  - for the `query` request parameter `itemsPerPage`, the type/format was generalized from `integer`/`int32` to `integer`/``
  - for the `query` request parameter `page`, the type/format was generalized from `integer`/`int32` to `integer`/``
- **2022-01-03** `8e79dcdeff2b` — 1 info
  - added the non-success response with the status `409`
- **2022-01-03** `be4e7ff3034b` — 3 breaking, 6 info
  - the `code` response's property type/format changed from `integer`/`int32` to `integer`/`` for status `400`
  - the `code` response's property type/format changed from `integer`/`int32` to `integer`/`` for status `404`
  - the `code` response's property type/format changed from `integer`/`int32` to `integer`/`` for status `500`
  - the response property `code` became required for the status `400`
  - …5 more
- **2021-12-21** `de0ebba2e9d9` — 2 breaking, 1 info
  - the `items/age` response's property type/format changed from `integer`/`int32` to `integer`/`` for status `200`
  - the `items/id` response's property type/format changed from `integer`/`int32` to `integer`/`` for status `200`
  - for the `path` request parameter `id`, the type/format was generalized from `integer`/`int32` to `integer`/``
- …earlier changes not shown

[Full history](https://skmtc.dev/ent/apis/my-pets-api/changes/categories/:id/pets/get.md)

---

[API](https://skmtc.dev/ent/apis/my-pets-api.md) · [All operations](https://skmtc.dev/ent/apis/my-pets-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ent/my-pets-api/revisions/4455d46a2733/schema)
