removed by book
Reviews
removed by book
Get Removed Reviews by Book ID
This endpoint retrieves a list of removed reviews for a specific book based on the provided book ID.
Request
- Method: GET
- URL: /reviews/book/:bookId/removed
- Query Parameters:
- page (number): The page number for paginated results.
- limit (number): The maximum number of reviews to be returned per page.
Response
The response will contain an array of removed reviews along with pagination details. Each review object includes the review ID, book details, review content, reviewer information, rating, upvoters, downvoters, removal status, creation and update timestamps, and version.
Example response:
{
"data": {
"reviews": {
"docs": [
{
"_id": "",
"book": "",
"review": "",
"reviewer": "",
"rating": 0,
"upvoters": [],
"downvoters": [],
"isRemoved": true,
"createdAt": "",
"updatedAt": "",
"__v": 0
}
],
"totalDocs": 0,
"offset": 0,
"limit": 0,
"totalPages": 0,
"page": 0,
"pagingCounter": 0,
"hasPrevPage": true,
"hasNextPage": true,
"prevPage": null,
"nextPage": null
}
},
"error": null
}
GET
removed by book