Mock Comments API

Free REST API for testing comment systems and discussion features with CRUD operations

Mock Comments API Documentation

A free REST API for testing and prototyping comment systems and discussion features. Perfect for testing comment systems and discussion features, prototyping blog and forum comment sections, building social media comment threads, learning nested comment structures and replies, and testing moderation and filtering features. No authentication required.

Available Endpoints

GET/api/mock/commentsGet all comments
GET/api/mock/comments?postId=:postIdGet comments by post
GET/api/mock/comments/:idGet a specific comment
POST/api/mock/commentsCreate a new comment
PUT/api/mock/comments/:idUpdate a comment
DELETE/api/mock/comments/:idDelete a comment

Comment Schema

{
  "id": 1,
  "postId": 1,
  "name": "Great article!",
  "email": "[email protected]",
  "body": "This was really helpful. Thanks for sharing!",
  "createdAt": "2024-02-11T00:00:00.000Z"
}
Interactive API Tester
Code Examples
fetch('/api/mock/comments')
  .then(response => response.json())
  .then(data => console.log(data))
Webmaster Db