Mock Posts API
Free REST API for testing blog and content management features with CRUD operations
Mock Posts API Documentation
A free REST API for testing and prototyping blog post and article features. Perfect for testing blog and content management systems, prototyping article and news feed features, learning CRUD operations with REST APIs, building demo applications with realistic post data, and testing pagination and filtering implementations. No authentication required.
Available Endpoints
GET
/api/mock/postsGet all postsGET
/api/mock/posts?userId=:userIdGet posts by userGET
/api/mock/posts/:idGet a specific postPOST
/api/mock/postsCreate a new postPUT
/api/mock/posts/:idUpdate a postDELETE
/api/mock/posts/:idDelete a postPost Schema
{
"id": 1,
"userId": 1,
"title": "Getting Started with TypeScript",
"body": "TypeScript is a powerful superset of JavaScript...",
"createdAt": "2024-02-01T00: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/posts')
.then(response => response.json())
.then(data => console.log(data))