Skip to main content
GET
/
reviews
/
all
all
curl --request GET \
  --url http://localhost:8000/v1/reviews/all
{
  "data": {
    "reviews": {
      "docs": [
        {
          "__v": 0,
          "_id": "670e317b59f06fc0a2501117",
          "book": "670e2ce78296c4aa4d1374ad",
          "createdAt": "2024-10-15T09:10:19.964Z",
          "downvoters": [],
          "isRemoved": false,
          "rating": 4,
          "review": "A great book, Gilead.",
          "reviewer": "6708d54f9c193b2aeae09b80",
          "updatedAt": "2024-10-15T09:10:19.964Z",
          "upvoters": []
        }
      ],
      "hasNextPage": false,
      "hasPrevPage": false,
      "limit": 10,
      "nextPage": null,
      "offset": 0,
      "page": 1,
      "pagingCounter": 1,
      "prevPage": null,
      "totalDocs": 1,
      "totalPages": 1
    }
  },
  "error": null
}

Query Parameters

page
string
Example:

"1"

limit
string
Example:

"10"

Response

all - success

data
object
error
unknown