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 commentsGET
/api/mock/comments?postId=:postIdGet comments by postGET
/api/mock/comments/:idGet a specific commentPOST
/api/mock/commentsCreate a new commentPUT
/api/mock/comments/:idUpdate a commentDELETE
/api/mock/comments/:idDelete a commentComment 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
Note: This is a stateless mock API. POST, PUT, and DELETE requests will return success responses, but no data is actually modified. All requests return the same consistent dataset for testing purposes.
Code Examples
fetch('/api/mock/comments')
.then(response => response.json())
.then(data => console.log(data))