Zero Coding
Just create a JSON file and get a REST API instantly
mocks is a Rust CLI tool that generates mock REST APIs instantly from JSON files. With zero coding required, it dynamically creates RESTful endpoints that support full CRUD operations.
Zero Coding
Just create a JSON file and get a REST API instantly
Full CRUD Support
Auto-generates GET, POST, PUT, PATCH, DELETE operations
Dynamic Routing
Automatically generates endpoints based on JSON file structure
Fast & Lightweight
Built with Rust for high performance and lightweight binaries
{ "posts": [ { "id": "1", "title": "First Post", "views": 100 }, { "id": "2", "title": "Second Post", "views": 10 } ], "profile": { "id": "1", "name": "mocks" }}
This JSON file automatically generates the following endpoints:
GET /posts
- List all postsGET /posts/1
- Get specific postPOST /posts
- Create new postPUT /posts/1
- Update postDELETE /posts/1
- Delete post