---
title: "Find all the submitted Comments for a Product with pagination"
method: GET
path: "/comment"
tags: ["Customer Review"]
---

# Find all the submitted Comments for a Product with pagination

`GET /comment`

## Query parameters

- `productId` integer, required
- `userId` integer
- `pageNumber` integer — Page number to retrieve
- `pageSize` integer — Number of elements for the requested page
- `sortDirection` 'ASC' | 'DESC' — Elements sort direction
- `sortField` string

## Response `200`

OK

- CommentDTO[]
  - `id` integer
  - `self` string
  - `userName` string — The username of the commenting User
  - `realName` string — The real name of the commenting User
  - `product` UrlEntityDTO, required — Reference to a related resource
    - `url` string, required — Reference to another resource
  - `rating` integer — Product rating
  - `comment` string — The actual comment
  - `date` string, date-time — Comment date
  - `availableOperations` string[]

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Conflict
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/cloudesire/apis/cloudesire-users-api.md) · [All operations](https://skmtc.net/cloudesire/apis/cloudesire-users-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudesire/cloudesire-users-api/versions/3d64889e8ae7/schema)
