Skip to content

mocks

Get mock REST APIs with zero coding within seconds

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 posts
  • GET /posts/1 - Get specific post
  • POST /posts - Create new post
  • PUT /posts/1 - Update post
  • DELETE /posts/1 - Delete post