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 posts
GET/api/mock/posts?userId=:userIdGet posts by user
GET/api/mock/posts/:idGet a specific post
POST/api/mock/postsCreate a new post
PUT/api/mock/posts/:idUpdate a post
DELETE/api/mock/posts/:idDelete a post

Post 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
Code Examples
fetch('/api/mock/posts')
  .then(response => response.json())
  .then(data => console.log(data))
Webmaster Db